Support querying for null values in mongoDB

This commit is contained in:
gi0baro
2013-08-23 13:18:49 +02:00
committed by Michele Comitini
parent e7ce778121
commit 5cef463dcf

View File

@@ -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