Unwind can now move the list
This commit is contained in:
parent
bdf5d7633e
commit
78fcb92738
@ -4474,9 +4474,8 @@ class UnwindCursor : public Cursor {
|
||||
TypedValue input_value = self_.input_expression_->Accept(evaluator);
|
||||
if (input_value.type() != TypedValue::Type::List)
|
||||
throw QueryRuntimeException("Argument of UNWIND must be a list, but '{}' was provided.", input_value.type());
|
||||
// Copy the evaluted input_value_list to our vector.
|
||||
// eval memory != query memory
|
||||
input_value_ = input_value.ValueList();
|
||||
// Move the evaluted input_value_list to our vector.
|
||||
input_value_ = std::move(input_value.ValueList());
|
||||
input_value_it_ = input_value_.begin();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user