LauJensen / clojureql

ClojureQL is superior SQL integration for Clojure
https://clojureql.sabrecms.com
Eclipse Public License 1.0
285 stars 39 forks source link

in does not handle functions propperly #111

Open Licenser opened 12 years ago

Licenser commented 12 years ago

(cql/where (in :MONTH/date [1 2])) results in

:clojureql.predicates.APredicate{:stmt ["MONTH/date IN (?,?)"], :env [[1 2]]}

while (cql/where (= :MONTH/date 2)) results in

:clojureql.predicates.APredicate{:stmt ["(MONTH(date) = ?)"], :env [2]}

Licenser commented 12 years ago

https://github.com/LauJensen/clojureql/blob/master/src/clojureql/predicates.clj#L86 should have a parameterize in there if I am not mistaken?