From 4574cf43b6626593825d1b3a1169e6de42f26bc8 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Wed, 26 Mar 2014 09:33:03 +0100 Subject: [PATCH] bug in HA_TOPTION_SYSVAR of the enum type - enum string was generated incorrectly --- sql/create_options.cc | 1 + 1 file changed, 1 insertion(+) 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(','))