Skip to content

Commit

Permalink
forbid function call in where clause
Browse files Browse the repository at this point in the history
  • Loading branch information
nevermore3 committed Oct 24, 2022
1 parent ec87707 commit 584e3f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/graph/validator/GetSubgraphValidator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ Status GetSubgraphValidator::validateWhere(WhereClause* where) {
Expression::Kind::kSrcProperty,
Expression::Kind::kVarProperty,
Expression::Kind::kInputProperty,
Expression::Kind::kFunctionCall,
Expression::Kind::kLogicalOr})) {
return Status::SemanticError("Not support `%s' in where sentence.", expr->toString().c_str());
}
Expand Down

0 comments on commit 584e3f2

Please sign in to comment.