nul ass function parameter allowed
This commit is contained in:
parent
948e50d0d7
commit
12acc2410e
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue