diff options
author | Sergey Glukhov <sergey.glukhov@oracle.com> | 2010-12-24 14:05:04 +0300 |
---|---|---|
committer | Sergey Glukhov <sergey.glukhov@oracle.com> | 2010-12-24 14:05:04 +0300 |
commit | bc56dcea9d7047c5561cee08ec2d74077e329f7d (patch) | |
tree | 14518ed65ff8a2be4328cc00d5eb9d6d347e8c37 /man/Makefile.am | |
parent | 8bb96394865ded184fce6b9ba501bed2f7fb9ab5 (diff) | |
download | mariadb-git-bc56dcea9d7047c5561cee08ec2d74077e329f7d.tar.gz |
Bug#57810 case/when/then : Assertion failed: length || !scale
ASSERT happens due to improper calculation of the max_length
in Item_func_div object, if dividend has max_length == 0 then
Item_func_div::max_length is set to 0 under some circumstances.
The fix:
If decimals == NOT_FIXED_DEC then set
Item_func_div::max_length to max possible
DOUBLE length value.
mysql-test/r/func_math.result:
test case
mysql-test/t/func_math.test:
test case
sql/item_func.cc:
The fix:
If decimals == NOT_FIXED_DEC then set
Item_func_div::max_length to max possible
DOUBLE length value.
Diffstat (limited to 'man/Makefile.am')
0 files changed, 0 insertions, 0 deletions