summaryrefslogtreecommitdiff
path: root/sql/create_options.cc
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2014-03-26 09:33:03 +0100
committerSergei Golubchik <sergii@pisem.net>2014-03-26 09:33:03 +0100
commit4574cf43b6626593825d1b3a1169e6de42f26bc8 (patch)
tree71b9dc2df69eb327eb4ce880e4149b3d1dd2d145 /sql/create_options.cc
parent1b468ca675c4b978f067a443e6cd0b3c14db68cc (diff)
downloadmariadb-git-4574cf43b6626593825d1b3a1169e6de42f26bc8.tar.gz
bug in HA_TOPTION_SYSVAR of the enum type - enum string was generated incorrectly
Diffstat (limited to 'sql/create_options.cc')
-rw-r--r--sql/create_options.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/create_options.cc b/sql/create_options.cc
index d9b1d31fd62..d60639a4f4a 100644
--- a/sql/create_options.cc
+++ b/sql/create_options.cc
@@ -395,6 +395,7 @@ static bool resolve_sysvars(handlerton *hton, ha_create_table_option *rules)
char buf[256];
String str(buf, sizeof(buf), system_charset_info);
+ str.length(0);
for (const char **s= optp.typelib->type_names; *s; s++)
{
if (str.append(*s) || str.append(','))