diff --git a/VERSION b/VERSION index d563a509..478b2c89 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.7.4-stable+timestamp.2013.11.16.03.22.18 +Version 2.7.4-stable+timestamp.2013.11.16.03.31.47 diff --git a/gluon/dal.py b/gluon/dal.py index c8fafcdd..eb260254 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -5985,6 +5985,11 @@ class MongoDBAdapter(NoSQLAdapter): return {self.expand(first): ('%s' % \ self.expand(second, 'string').replace('%','/'))} + def ILIKE(self, first, second): + val = second if isinstance(second,self.ObjectId) else { + '$regex': second.replace('%', ''), '$options': 'i'} + return {self.expand(first): val} + def STARTSWITH(self, first, second): #escaping regex operators? return {self.expand(first): ('/^%s/' % \