diff options
author | unknown <holyfoot@hf-ibm.(none)> | 2005-06-09 15:27:26 +0500 |
---|---|---|
committer | unknown <holyfoot@hf-ibm.(none)> | 2005-06-09 15:27:26 +0500 |
commit | 146893a7a0b632d8fcb90e391c788dc34db84bef (patch) | |
tree | f7fd6a2ddedc1afbd30f51cf56908d74ec42b8e0 /mysql-test | |
parent | 7073dda6208ba26b23f69a95d7bb002932938275 (diff) | |
download | mariadb-git-146893a7a0b632d8fcb90e391c788dc34db84bef.tar.gz |
Fix for bug #10083 (round doesn't increase scale)
mysql-test/r/func_math.result:
test result fixed
mysql-test/t/func_math.test:
test case added
sql/item_func.cc:
now we always use decimals_to_set
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/r/func_math.result | 3 | ||||
-rw-r--r-- | mysql-test/t/func_math.test | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/r/func_math.result b/mysql-test/r/func_math.result index e4889289c18..c7674c57c8d 100644 --- a/mysql-test/r/func_math.result +++ b/mysql-test/r/func_math.result @@ -143,3 +143,6 @@ select format(col2,6) from t1 where col1=7; format(col2,6) 1,234,567,890,123,456.123450 drop table t1; +select round(150, 2); +round(150, 2) +150.00 diff --git a/mysql-test/t/func_math.test b/mysql-test/t/func_math.test index b21f38052b6..03057af6911 100644 --- a/mysql-test/t/func_math.test +++ b/mysql-test/t/func_math.test @@ -79,3 +79,8 @@ insert into t1 values(7,1234567890123456.12345); select format(col2,6) from t1 where col1=7; drop table t1; + +# +# Bug #10083 (round doesn't increase decimals) +# +select round(150, 2); |