diff --git a/dbcon/execplan/arithmeticoperator.h b/dbcon/execplan/arithmeticoperator.h index 81a37f7b1..53ae27327 100644 --- a/dbcon/execplan/arithmeticoperator.h +++ b/dbcon/execplan/arithmeticoperator.h @@ -327,13 +327,13 @@ inline result_t ArithmeticOperator::execute(result_t op1, result_t op2, bool& is { // at least one operand is NULL. // do nothing, return 0. - if constexpr (std::is_same::value) + if constexpr (std::is_same::value) { return datatypes::TSInt128(); // returns 0 } else { - return 0; + return result_t{0}; } } switch (fOp)