Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in does not handle functions propperly #111

Open
Licenser opened this issue Sep 16, 2011 · 1 comment
Open

in does not handle functions propperly #111

Licenser opened this issue Sep 16, 2011 · 1 comment

Comments

@Licenser
Copy link

(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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant