How to use ILIKE?
#229
-
Hey, what could be a function to use |
Beta Was this translation helpful? Give feedback.
Answered by
go-jet
Apr 17, 2023
Replies: 1 comment 2 replies
-
Currently, BoolExp(Raw("table.column ILIKE :value", , RawArgs{":float": "_val%" })) , or you can simulate LOWER(table.column).LIKE(String("_val%")) Not sure about extending |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
isgj
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently,
ILIKE
is not supported. You'll have to useRaw
method. For instance:, or you can simulate
ILIKE
usingLOWER
:Not sure about extending
StringExpression
becauseILIKE
is postgres specific, andStringExpression
is interface for all dialects. Probably newILIKE
method would be the best:ILIKE(table.column, String("_val%"))
.