summaryrefslogtreecommitdiff
path: root/sql/sql_parse.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2017-01-12 15:16:45 +0400
committerAlexander Barkov <bar@mariadb.org>2017-01-12 16:37:58 +0400
commitebb8c9fb26f86cff8c0d81bd2415f415cef952bb (patch)
tree412a9f09133ef8280b55f4e689637380cc8451d6 /sql/sql_parse.h
parent2dc5d8bb7e087a340edb989c045070b808e0da57 (diff)
downloadmariadb-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_parse.h')
0 files changed, 0 insertions, 0 deletions