From 61bfb0994843b18cdff7a046f178dfb3f633db3f Mon Sep 17 00:00:00 2001 From: VaclavT Date: Sat, 8 Jan 2022 01:39:35 +0100 Subject: [PATCH] usql update --- usql/usql.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/usql/usql.cpp b/usql/usql.cpp index 3835007..ca18fe1 100644 --- a/usql/usql.cpp +++ b/usql/usql.cpp @@ -173,10 +173,8 @@ std::unique_ptr USql::eval_function_value_node(Table *table, Row &row evaluatedPars.push_back(eval_value_node(table, row, param.get(), nullptr, nullptr)); } - // 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(); + return std::make_unique(); // TODO use some enum if (fnc->function == "lower") return lower_function(evaluatedPars);