summaryrefslogtreecommitdiff
path: root/sql/item_strfunc.h
diff options
context:
space:
mode:
authorRoman Nozdrin <roman.nozdrin@mariadb.com>2020-02-28 15:44:56 +0000
committerRoman Nozdrin <roman.nozdrin@mariadb.com>2020-02-29 11:34:49 +0000
commit1ad8693a6f6b44121651a0c7ccf80ae1f099744d (patch)
treebb5811aab0952c442e264c136b92046a22ada922 /sql/item_strfunc.h
parente837a358b660ab259cdf2c12712a925ece98a40d (diff)
downloadmariadb-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.h2
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;
}