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-28 17:02:27 +0000 |
commit | 424149e3282e0ff4950726458d006528f5dc187e (patch) | |
tree | bb5811aab0952c442e264c136b92046a22ada922 /sql/item_strfunc.h | |
parent | e837a358b660ab259cdf2c12712a925ece98a40d (diff) | |
download | mariadb-git-bb-MDEV-21841.tar.gz |
MDEV-21841 CONV() function doesn't truncate its output to 21 when uses default charset.bb-MDEV-21841
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; } |