Merge branch 'master' of github.com:web2py/web2py

This commit is contained in:
mdipierro
2013-08-24 05:19:41 -05:00
+1 -1
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