From f911cd254b843ca1facc2d97a2eea822ac1f7421 Mon Sep 17 00:00:00 2001 From: Jan Steemann Date: Thu, 14 Aug 2014 10:29:54 +0200 Subject: [PATCH] fixed bug --- arangod/Aql/ExecutionPlan.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arangod/Aql/ExecutionPlan.cpp b/arangod/Aql/ExecutionPlan.cpp index fbfdceb648..60a90934cf 100644 --- a/arangod/Aql/ExecutionPlan.cpp +++ b/arangod/Aql/ExecutionPlan.cpp @@ -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);