LibSQL: Return a not-yet-implemented error for unimplemented expressions

Easier to debug than returning a NULL value.
This commit is contained in:
Timothy Flynn
2022-02-10 17:58:55 -05:00
committed by Linus Groh
parent 5c90aa357b
commit e649ff5d31
Notes: sideshowbarker 2024-07-17 18:53:33 +09:00
2 changed files with 4 additions and 6 deletions

View File

@@ -305,7 +305,10 @@ struct ExecutionContext {
class Expression : public ASTNode {
public:
virtual ResultOr<Value> evaluate(ExecutionContext&) const;
virtual ResultOr<Value> evaluate(ExecutionContext&) const
{
return Result { SQLCommand::Unknown, SQLErrorCode::NotYetImplemented };
}
};
class ErrorExpression final : public Expression {