fixed issue 843, thanks hoatre2001
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 2.00.0 (2012-06-13 16:50:48) dev
|
||||
Version 2.00.0 (2012-06-13 17:01:54) dev
|
||||
|
||||
+4
-1
@@ -4610,7 +4610,10 @@ class MongoDBAdapter(NoSQLAdapter):
|
||||
return expression
|
||||
|
||||
def _select(self,query,fields,attributes):
|
||||
from pymongo.son import SON
|
||||
try:
|
||||
from bson.son import SON
|
||||
except ImportError:
|
||||
from pymongo.son import SON
|
||||
|
||||
for key in set(attributes.keys())-set(('limitby','orderby')):
|
||||
raise SyntaxError, 'invalid select attribute: %s' % key
|
||||
|
||||
Reference in New Issue
Block a user