From b38f192e2ea1591a566eaed418a8d42110604795 Mon Sep 17 00:00:00 2001 From: David Hall Date: Thu, 18 Apr 2019 13:31:16 -0500 Subject: [PATCH] MCOL-1985 Don't change umber of decimals if DECIMAL_NOT_SPECIFIED --- utils/regr/regrmysql.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/regr/regrmysql.cpp b/utils/regr/regrmysql.cpp index 5faed3b0b..32cd41209 100644 --- a/utils/regr/regrmysql.cpp +++ b/utils/regr/regrmysql.cpp @@ -168,7 +168,7 @@ extern "C" return 1; } - if (args->arg_type[1] == DECIMAL_RESULT) + if (initid->decimals != DECIMAL_NOT_SPECIFIED) { initid->decimals +=4; } @@ -272,7 +272,7 @@ extern "C" return 1; } - if (args->arg_type[0] == DECIMAL_RESULT) + if (initid->decimals != DECIMAL_NOT_SPECIFIED) { initid->decimals +=4; }