diff options
author | unknown <igor@olga.mysql.com> | 2007-06-13 09:32:36 -0700 |
---|---|---|
committer | unknown <igor@olga.mysql.com> | 2007-06-13 09:32:36 -0700 |
commit | c0ebdff9c76c2b3e09bf5e44c22e68a35ef1affc (patch) | |
tree | f5072132a75069825238eb0a052ba011b5e9c8fa /tests/mysql_client_test.c | |
parent | 119412f8d0cc364678e8e3b3c36c42e6fea69e3d (diff) | |
download | mariadb-git-c0ebdff9c76c2b3e09bf5e44c22e68a35ef1affc.tar.gz |
Fixed bug #28980: the result of ROUND(<decimal expr>,<int column>)
was erroneously converted to double, while the result of
ROUND(<decimal expr>, <int literal>) was preserved as decimal.
As a result of such a conversion the value of ROUND(D,A) could
differ from the value of ROUND(D,val(A)) if D was a decimal expression.
Now the result of the ROUND function is never converted to
double if the first argument is decimal.
mysql-test/r/type_decimal.result:
Added a test case for bug #28980.
mysql-test/t/type_decimal.test:
Added a test case for bug #28980.
Diffstat (limited to 'tests/mysql_client_test.c')
0 files changed, 0 insertions, 0 deletions