nul ass function parameter allowed

This commit is contained in:
vaclavt 2022-01-10 20:29:21 +01:00
parent 948e50d0d7
commit 12acc2410e
1 changed files with 1 additions and 2 deletions

View File

@ -175,8 +175,7 @@ std::unique_ptr<ValueNode> USql::eval_function_value_node(Table *table, Row &row
// at this moment no functions without parameter(s) or first param can be null
if (evaluatedPars.empty() || evaluatedPars[0]->isNull())
throw Exception("eval_function_value_node, no function parameter or first is null, function: " + fnc->function);
// return std::make_unique<NullValueNode>();
return std::make_unique<NullValueNode>();
// TODO use some enum
if (fnc->function == "lower") return lower_function(evaluatedPars);