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-28 17:02:27 +0000
commit424149e3282e0ff4950726458d006528f5dc187e (patch)
treebb5811aab0952c442e264c136b92046a22ada922 /sql/item_strfunc.h
parente837a358b660ab259cdf2c12712a925ece98a40d (diff)
downloadmariadb-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.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;
}