diff options
author | Roman Nozdrin <roman.nozdrin@mariadb.com> | 2020-02-28 15:44:56 +0000 |
---|---|---|
committer | Roman Nozdrin <roman.nozdrin@mariadb.com> | 2020-02-29 11:34:49 +0000 |
commit | 1ad8693a6f6b44121651a0c7ccf80ae1f099744d (patch) | |
tree | bb5811aab0952c442e264c136b92046a22ada922 /sql/item_strfunc.h | |
parent | e837a358b660ab259cdf2c12712a925ece98a40d (diff) | |
download | mariadb-git-1ad8693a6f6b44121651a0c7ccf80ae1f099744d.tar.gz |
MDEV-21841 CONV() function doesn't truncate its output to 21 when uses default charset.
Diffstat (limited to 'sql/item_strfunc.h')
-rw-r--r-- | sql/item_strfunc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_strfunc.h b/sql/item_strfunc.h index 42b5b4f2aeb..ae0afeabeae 100644 --- a/sql/item_strfunc.h +++ b/sql/item_strfunc.h @@ -1205,7 +1205,7 @@ public: bool fix_length_and_dec() { collation.set(default_charset()); - max_length=64; + fix_char_length(64); maybe_null= 1; return FALSE; } |