nul ass function parameter allowed
This commit is contained in:
@@ -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
|
// at this moment no functions without parameter(s) or first param can be null
|
||||||
if (evaluatedPars.empty() || evaluatedPars[0]->isNull())
|
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
|
// TODO use some enum
|
||||||
if (fnc->function == "lower") return lower_function(evaluatedPars);
|
if (fnc->function == "lower") return lower_function(evaluatedPars);
|
||||||
|
|||||||
Reference in New Issue
Block a user