Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
czpmango committed Oct 8, 2021
1 parent 9d5c8c6 commit 5497494
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/graph/context/QueryContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class QueryContext {
bool isKilled() const { return killed_.load(); }

bool existParameter(const std::string& param) const {
return ectx_->exist(param) && ectx_->getValue(param).type() != Value::Type::DATASET;
return ectx_->exist(param) && (ectx_->getValue(param).type() != Value::Type::DATASET);
}

private:
Expand Down
2 changes: 1 addition & 1 deletion src/graph/validator/Validator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ Status Validator::validateStarts(const VerticesClause* clause, Starts& starts) {
if (kind != Expression::Kind::kInputProperty && kind != Expression::Kind::kVarProperty &&
kind != Expression::Kind::kParam) {
return Status::SemanticError(
"`%s', Only input and variable expression is acceptable"
"`%s', Only input/variable/parameter expression is acceptable"
" when starts are evaluated at runtime.",
src->toString().c_str());
}
Expand Down

0 comments on commit 5497494

Please sign in to comment.