Open tomjaguarpaw opened 11 years ago
I suspect the culprit is this
https://github.com/m4dc4p/haskelldb/blob/master/src/Database/HaskellDB/Optimize.hs#L142
It should be checked that assoc1
contains no aggregations before merging the projections.
If I aggregate twice in a row I seem to get malformed SQL. For example with this code
I get the result