Skip to content

Commit

Permalink
Wrong BSON object was passed in case of Meta Drive
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrarahmed1974 committed Jun 6, 2014
1 parent 2007c72 commit 990bdf1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mongo_query.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,11 @@ QueryDocument(Oid relationId, List *opExpressionList)

operatorName = get_opname(columnOperator->opno);
mongoOperatorName = MongoOperatorName(operatorName);

#ifdef META_DRIVER
AppendConstantValue(&r, mongoOperatorName, constant);
#else
AppendConstantValue(queryDocument, mongoOperatorName, constant);
#endif
}
BsonAppendFinishObject(queryDocument, &r);
}
Expand Down

0 comments on commit 990bdf1

Please sign in to comment.