diff --git a/Userland/Libraries/LibSQL/AST/AST.h b/Userland/Libraries/LibSQL/AST/AST.h index ed07b69c0bd..092ecff1f8f 100644 --- a/Userland/Libraries/LibSQL/AST/AST.h +++ b/Userland/Libraries/LibSQL/AST/AST.h @@ -305,7 +305,10 @@ struct ExecutionContext { class Expression : public ASTNode { public: - virtual ResultOr evaluate(ExecutionContext&) const; + virtual ResultOr evaluate(ExecutionContext&) const + { + return Result { SQLCommand::Unknown, SQLErrorCode::NotYetImplemented }; + } }; class ErrorExpression final : public Expression { diff --git a/Userland/Libraries/LibSQL/AST/Expression.cpp b/Userland/Libraries/LibSQL/AST/Expression.cpp index 2d48cfcadb3..7183d1e5211 100644 --- a/Userland/Libraries/LibSQL/AST/Expression.cpp +++ b/Userland/Libraries/LibSQL/AST/Expression.cpp @@ -12,11 +12,6 @@ namespace SQL::AST { static const String s_posix_basic_metacharacters = ".^$*[]+\\"; -ResultOr Expression::evaluate(ExecutionContext&) const -{ - return Value::null(); -} - ResultOr NumericLiteral::evaluate(ExecutionContext&) const { Value ret(SQLType::Float);