diff options
author | Alexander Barkov <bar@mariadb.org> | 2017-01-12 15:16:45 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2017-01-12 16:37:58 +0400 |
commit | ebb8c9fb26f86cff8c0d81bd2415f415cef952bb (patch) | |
tree | 412a9f09133ef8280b55f4e689637380cc8451d6 /sql/sql_load.cc | |
parent | 2dc5d8bb7e087a340edb989c045070b808e0da57 (diff) | |
download | mariadb-git-ebb8c9fb26f86cff8c0d81bd2415f415cef952bb.tar.gz |
MDEV-11030 Assertion `precision > 0' failed in decimal_bin_size
Fixing Item::decimal_precision() to return at least one digit.
This fixes the problem reported in MDEV.
Also, fixing Item_func_signed::fix_length_and_dec() to reserve
space for at least one digit (plus one character for an optional sign).
This is needed to have CONVERT(expr,SIGNED) and CONVERT(expr,UNSIGNED)
create correct string fields when they appear in string context, e.g.:
CREATE TABLE t1 AS SELECT CONCAT(CONVERT('',SIGNED));
Diffstat (limited to 'sql/sql_load.cc')
0 files changed, 0 insertions, 0 deletions