diff options
author | unknown <jimw@mysql.com> | 2006-05-18 10:34:01 -0700 |
---|---|---|
committer | unknown <jimw@mysql.com> | 2006-05-18 10:34:01 -0700 |
commit | 573d9e47ab9b97209d31b18fc8c21df4e18504e4 (patch) | |
tree | 5fe3339eff5f8f0de92f577987df50fcfbdaf763 /sql/item_strfunc.h | |
parent | 741831174722c50feab97a007f58bbce82b52f0a (diff) | |
download | mariadb-git-573d9e47ab9b97209d31b18fc8c21df4e18504e4.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.
mysql-test/r/func_str.result:
Add test results
mysql-test/t/func_str.test:
Add new regression test
sql/item_strfunc.h:
Remove unnecessary reset of decimals in Item_func_conv::fix_length_and_dec().
Diffstat (limited to 'sql/item_strfunc.h')
-rw-r--r-- | sql/item_strfunc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_strfunc.h b/sql/item_strfunc.h index 7d7b62df0dc..90d421a2c68 100644 --- a/sql/item_strfunc.h +++ b/sql/item_strfunc.h @@ -542,7 +542,7 @@ public: void fix_length_and_dec() { collation.set(default_charset()); - decimals=0; max_length=64; + max_length= 64; } }; |