1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

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.
This commit is contained in:
jimw@mysql.com
2006-05-18 10:34:01 -07:00
parent 894092becf
commit 7d54b004a2
3 changed files with 13 additions and 1 deletions

View File

@@ -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