Fixed aggregate without having to first arguments, which broke SELECT field order independence and aliasing

This commit is contained in:
Niels van Klaveren 2014-08-19 10:29:28 +02:00
parent 41095d18ce
commit 0ce17ccfcf

View file

@ -230,6 +230,10 @@
(defhelper aggregate [m aggregate-fn]
(assoc m :aggregate (first aggregate-fn)))
(defn aggregate
([table] (aggregate nil table))
([m table] (build-clause :aggregate m table)))
(defhelper spartition-by [m fields]
(assoc m :partition-by (collify fields)))