diff options
author | Alexander Barkov <bar@mariadb.org> | 2015-09-25 21:33:50 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2015-09-25 21:33:50 +0400 |
commit | 30711c6650fc7e2f166f29d0bc59eeab64dadb3e (patch) | |
tree | bd9a209f1e339c73a2d23c22c9c078ea992ebd08 /sql/item_strfunc.h | |
parent | 26e4403f649839e82dd26f7a6b31165063eb2871 (diff) | |
download | mariadb-git-30711c6650fc7e2f166f29d0bc59eeab64dadb3e.tar.gz |
MDEV-8806 Numeric CAST produce different warnings for strings literals vs functions
Diffstat (limited to 'sql/item_strfunc.h')
-rw-r--r-- | sql/item_strfunc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/item_strfunc.h b/sql/item_strfunc.h index d1abbe198b1..1a9f855dec5 100644 --- a/sql/item_strfunc.h +++ b/sql/item_strfunc.h @@ -67,6 +67,11 @@ public: enum Item_result result_type () const { return STRING_RESULT; } void left_right_max_length(); bool fix_fields(THD *thd, Item **ref); + void update_null_value() + { + StringBuffer<MAX_FIELD_WIDTH> tmp; + (void) val_str(&tmp); + } }; |