From db957fc4898f8fd8e1154ed1ab32643d6c89d67f Mon Sep 17 00:00:00 2001 From: gi0baro Date: Fri, 23 Aug 2013 13:18:49 +0200 Subject: [PATCH] Support querying for null values in mongoDB --- gluon/dal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gluon/dal.py b/gluon/dal.py index c98bb8b3..1edd16b8 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -5667,7 +5667,7 @@ class MongoDBAdapter(NoSQLAdapter): items = [self.expand(item, first.type) for item in second] return {self.expand(first) : {"$in" : items} } - def EQ(self,first,second): + def EQ(self,first,second=None): result = {} result[self.expand(first)] = self.expand(second) return result