1
0
Fork 0

fixed bug

This commit is contained in:
Jan Steemann 2014-08-14 10:29:54 +02:00
parent 1ad300cee5
commit f911cd254b
1 changed files with 2 additions and 2 deletions

View File

@ -548,7 +548,7 @@ ExecutionNode* ExecutionPlan::fromNodeUpdate (Ast const* ast,
ExecutionNode* previous,
AstNode const* node) {
TRI_ASSERT(node != nullptr && node->type == NODE_TYPE_UPDATE);
TRI_ASSERT(node->numMembers() == 2);
TRI_ASSERT(node->numMembers() >= 2);
auto collection = node->getMember(0);
auto expression = node->getMember(1);
@ -582,7 +582,7 @@ ExecutionNode* ExecutionPlan::fromNodeReplace (Ast const* ast,
ExecutionNode* previous,
AstNode const* node) {
TRI_ASSERT(node != nullptr && node->type == NODE_TYPE_REPLACE);
TRI_ASSERT(node->numMembers() == 2);
TRI_ASSERT(node->numMembers() >= 2);
auto collection = node->getMember(0);
auto expression = node->getMember(1);