ilike, thanks Niphlod

This commit is contained in:
mdipierro
2014-09-14 15:28:48 -05:00
parent 6a75132d54
commit 75f2b90151
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.9.9-stable+timestamp.2014.09.14.14.57.06
Version 2.9.9-stable+timestamp.2014.09.14.15.28.44
+3
View File
@@ -9810,6 +9810,9 @@ class Expression(object):
op = case_sensitive and db._adapter.LIKE or db._adapter.ILIKE
return Query(db, op, self, value)
def ilike(self, value):
return self.like(case_sensitive=False)
def regexp(self, value):
db = self.db
return Query(db, db._adapter.REGEXP, self, value)