Skip to content

Commit

Permalink
patch.
Browse files Browse the repository at this point in the history
  • Loading branch information
xtcyclist committed Mar 24, 2023
1 parent df2b780 commit 6fe448c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/graph/executor/logic/LoopExecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ folly::Future<Status> LoopExecutor::execute() {
QueryExpressionContext ctx(ectx_);

auto value = expr->eval(ctx);
if (value.isNull()) {
value = Value(true);
}
DCHECK(value.isBool());
finally_ = !(value.isBool() && value.getBool());
return finish(ResultBuilder().value(std::move(value)).iter(Iterator::Kind::kDefault).build());
Expand Down

0 comments on commit 6fe448c

Please sign in to comment.