From 61d9d213e91f7fbc0381a2ef81b1e941d7fd2506 Mon Sep 17 00:00:00 2001 From: myrrc Date: Thu, 17 Dec 2020 23:14:02 +0300 Subject: [PATCH] fixed another variable init --- src/Functions/FunctionBinaryArithmetic.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Functions/FunctionBinaryArithmetic.h b/src/Functions/FunctionBinaryArithmetic.h index 35fdd8f0230..68b761c4904 100644 --- a/src/Functions/FunctionBinaryArithmetic.h +++ b/src/Functions/FunctionBinaryArithmetic.h @@ -1023,10 +1023,12 @@ public: else if constexpr(result_is_decimal) scale_a = type.scaleFactorFor(left, is_multiply); else - scale_a = 0.0; //won't be used + scale_a = 0.0; //won't be used as the target column is not decimal if constexpr(result_is_decimal) scale_b = type.scaleFactorFor(right, is_multiply || is_division); + else + scale_b = 0.0; //won't be used, same /// non-vector result if (col_left_const && col_right_const)