fixed another typo in recent mongodb commit

This commit is contained in:
Massimo Di Pierro
2012-05-07 17:40:26 -05:00
parent 292c93658d
commit 9fb7bc06de
2 changed files with 4 additions and 4 deletions

View File

@@ -1 +1 @@
Version 1.99.7 (2012-05-07 17:35:40) dev
Version 1.99.7 (2012-05-07 17:40:22) dev

View File

@@ -4693,11 +4693,11 @@ class MongoDBAdapter(NoSQLAdapter):
sort=mongosort_list,snapshot=snapshot) # pymongo cursor object
print "mongo_list_dicts=%s" % mongo_list_dicts
rows = []
columns = []
colnames = []
for record in mongo_list_dicts:
row=[]
for column in record:
columns.append(column)
colnames.append(column)
if withId and (column == '_id'):
if isinstance(record[column],pymongo.objectid.ObjectId):
row.append( int(str(record[column]),16))
@@ -4708,7 +4708,7 @@ class MongoDBAdapter(NoSQLAdapter):
row.append(record[column])
rows.append(row)
processor = attributes.get('processor',self.parse)
return processor(rows,columns,False)
return processor(rows,fields,colnames,False)
def INVERT(self,first):
#print "in invert first=%s" % first