Community
Participate
Working Groups
Created attachment 205261 [details] patch 6. Aggregations with nil=’true’. By now they throw exceptions. TypePromoter needed changes to take empty sequences as possible arguments. Since count was not changed and avg=sum div count - fix takes empty nodes to average: http://www.w3.org/TR/xquery-operators/#func-avg Please also note that $zero (second argument) in function needed to be used in empty nodes: http://www.w3.org/TR/xquery-operators/#func-sum Tests: TestBugs:testNumberAggregationWithNill()
Created attachment 205262 [details] testcase
Patch looks good ... Reviewing and testing against HEAD and maintenance branches!
Committed -- Thanks, Lukasz