implement ilike() operator
Issue #727
resolved
the "ilike" operator is present in sql.Operators. lets wire it up, and have ansisql.py produce "lower(x) like lower('foo')" (or somehow lowercase the right-side bind param) for those DBs that dont have ilike (or in mysql, perhaps just produce "like"?).
Comments (4)
-
-
reporter this is so ready to be done and comes up all the time....its just a few op()s and some unit tests. time to do it !
-
reporter - changed status to resolved
diff:@4053:4055
-
reporter - removed milestone
Removing milestone: 0.4.3 (automated comment)
- Log in to comment
that's still more or less correct for mysql- LIKE uses the column collation, which is most likely lowercase but no guarantee. lower() might even noop in that case. i think the "most correct" way using COLLATE would require knowing the column character set, which is untenable.