diff options
author | jimw@mysql.com <> | 2006-05-18 10:34:01 -0700 |
---|---|---|
committer | jimw@mysql.com <> | 2006-05-18 10:34:01 -0700 |
commit | 7d54b004a2a1af9023c5b95cb6d4e66063a964d7 (patch) | |
tree | 5fe3339eff5f8f0de92f577987df50fcfbdaf763 /mysql-test/r/func_str.result | |
parent | 894092becf2b5aa74d22c9beea148c93b1228950 (diff) | |
download | mariadb-git-7d54b004a2a1af9023c5b95cb6d4e66063a964d7.tar.gz |
Bug #13975: "same string" + 0 has 2 different results
The 'decimals' member of Item_func was being improperly initialized,
which resulted in improper results when handling large numeric values.
Diffstat (limited to 'mysql-test/r/func_str.result')
-rw-r--r-- | mysql-test/r/func_str.result | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mysql-test/r/func_str.result b/mysql-test/r/func_str.result index 6f8269bdcbd..a17661d26d0 100644 --- a/mysql-test/r/func_str.result +++ b/mysql-test/r/func_str.result @@ -1046,4 +1046,10 @@ cast(ltrim(' 20.06 ') as decimal(19,2)) select cast(rtrim(ltrim(' 20.06 ')) as decimal(19,2)); cast(rtrim(ltrim(' 20.06 ')) as decimal(19,2)) 20.06 +select conv("18383815659218730760",10,10) + 0; +conv("18383815659218730760",10,10) + 0 +1.8383815659219e+19 +select "18383815659218730760" + 0; +"18383815659218730760" + 0 +1.8383815659219e+19 End of 5.0 tests |