fixed another typo in recent mongodb commit
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 1.99.7 (2012-05-07 17:35:40) dev
|
Version 1.99.7 (2012-05-07 17:40:22) dev
|
||||||
|
|||||||
+3
-3
@@ -4693,11 +4693,11 @@ class MongoDBAdapter(NoSQLAdapter):
|
|||||||
sort=mongosort_list,snapshot=snapshot) # pymongo cursor object
|
sort=mongosort_list,snapshot=snapshot) # pymongo cursor object
|
||||||
print "mongo_list_dicts=%s" % mongo_list_dicts
|
print "mongo_list_dicts=%s" % mongo_list_dicts
|
||||||
rows = []
|
rows = []
|
||||||
columns = []
|
colnames = []
|
||||||
for record in mongo_list_dicts:
|
for record in mongo_list_dicts:
|
||||||
row=[]
|
row=[]
|
||||||
for column in record:
|
for column in record:
|
||||||
columns.append(column)
|
colnames.append(column)
|
||||||
if withId and (column == '_id'):
|
if withId and (column == '_id'):
|
||||||
if isinstance(record[column],pymongo.objectid.ObjectId):
|
if isinstance(record[column],pymongo.objectid.ObjectId):
|
||||||
row.append( int(str(record[column]),16))
|
row.append( int(str(record[column]),16))
|
||||||
@@ -4708,7 +4708,7 @@ class MongoDBAdapter(NoSQLAdapter):
|
|||||||
row.append(record[column])
|
row.append(record[column])
|
||||||
rows.append(row)
|
rows.append(row)
|
||||||
processor = attributes.get('processor',self.parse)
|
processor = attributes.get('processor',self.parse)
|
||||||
return processor(rows,columns,False)
|
return processor(rows,fields,colnames,False)
|
||||||
|
|
||||||
def INVERT(self,first):
|
def INVERT(self,first):
|
||||||
#print "in invert first=%s" % first
|
#print "in invert first=%s" % first
|
||||||
|
|||||||
Reference in New Issue
Block a user