In ClojureQL how can I make a where clause case insensitive? I am trying to add UPPER or something to do this in the where clause but I can't figure out how to do this
Asked
Active
Viewed 164 times
1 Answers
2
In ClojureQL you can call a function like this:
:function/col
So something like this should work according to the documentation:
(select (table :users) (where (= :LOWER/name john)))

Daan
- 9,984
- 2
- 30
- 36
-
I was getting "function lcase(character varying) does not exist". I changes it to LOWER though and it works now. Thanks! – yazz.com Sep 05 '11 at 11:18