3

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

Alex Miller
  • 69,183
  • 25
  • 122
  • 167
yazz.com
  • 57,320
  • 66
  • 234
  • 385

1 Answers1

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