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 | b69b46c77561fd773943738c348c32b8bda5e51e (patch) | |
tree | 14518ed65ff8a2be4328cc00d5eb9d6d347e8c37 /client | |
parent | 8b0f0a97232e12e9f9209214f4a4224d7d362d22 (diff) | |
download | mariadb-git-b69b46c77561fd773943738c348c32b8bda5e51e.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.
Diffstat (limited to 'client')
0 files changed, 0 insertions, 0 deletions