summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarlo Zancanaro <carlo@clearboxsystems.com.au>2013-11-12 10:21:53 +1100
committerCarlo Zancanaro <carlo@clearboxsystems.com.au>2013-11-12 10:21:53 +1100
commit3ea93238b71eb1af0bdfcbab4559c9a6734944e7 (patch)
tree19c0b818fa2130b458d689923a9b855a88f309f1 /test
parentedf366e1f31358036c4a43b15f50c10ea80bfd3e (diff)
Fix grouping - it used to allow for groupings leaving a non-grouped field
Now it takes a third "projection" argument in which one can perform aggregate function over the existing fields. The fields of the resulting query are the union of the grouping fields and the projected fields (with the projected fields taking precedence). If you try to project a field without applying some sort of function to it then you'll get an exception, but at the moment no function calls are actually validated as aggregate functions (in order to do so we'd need a knowledge of all the aggregate functions, which isn't possible in general).
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions