From bab7c762bc681db045cf838a12913e2d4f3e8c1f Mon Sep 17 00:00:00 2001 From: filipe Date: Sat, 3 Oct 2020 20:38:21 -0300 Subject: [PATCH] fix style and pvs check --- src/Functions/FunctionsFormatting.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Functions/FunctionsFormatting.h b/src/Functions/FunctionsFormatting.h index ab5166bac46..809959d96ae 100644 --- a/src/Functions/FunctionsFormatting.h +++ b/src/Functions/FunctionsFormatting.h @@ -383,7 +383,7 @@ private: aux += hours * 3600; long long int minutes = maximum_unit_int < 2 ? 0 : (value - aux) / 60; aux += minutes * 60; - double seconds = maximum_unit_int < 1 ? 0 : value - aux; + double seconds = value - aux; std::vector parts; @@ -429,9 +429,9 @@ private: } String str_value; - for(size_t i=0; igetValue(); else throw Exception( - "Illegal column " + maximum_unit_const_col->getName() + " of argument of function " + getName(), ErrorCodes::ILLEGAL_COLUMN); + "Illegal column " + arguments[1].get()->getName() + " of argument of function " + getName(), ErrorCodes::ILLEGAL_COLUMN); } if (const ColumnVector * col_from = checkAndGetColumn>(block.getByPosition(arguments[0]).column.get()))