LauJensen/clojureql — Issue #118: problems with aggregate
Author: Licenser
Created: 2011-10-27 11:46:12+00:00
State: open

Example:

(cql/aggregate [[:sum/hours :as :total]
[:YEAR/date :as :year]
[:tasks.desc :as :task]
[:MONTH/date :as :month]
[:taskID :as :tid]]
[:MONTH/date :taskID])

has the following problems:

1) you can't ruse :month in the group by
2) name the field being grouped by since it creates an SQL error, unnamed fields give horrible maps as return.