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; }