Commit 5a5c618e authored by unknown's avatar unknown

do not call get_charset_by_name() with string "DEFAULT"

parent 6383a27b
...@@ -113,11 +113,13 @@ static bool load_db_opt(const char *path, HA_CREATE_INFO *create) ...@@ -113,11 +113,13 @@ static bool load_db_opt(const char *path, HA_CREATE_INFO *create)
if ((pos= strchr(buf, '='))) if ((pos= strchr(buf, '=')))
{ {
if (!strncmp(buf,"default-character-set", (pos-buf))) if (!strncmp(buf,"default-character-set", (pos-buf)))
{
if (strcmp(pos+1,"DEFAULT"))
{ {
if (!(create->table_charset=get_charset_by_name(pos+1, MYF(0)))) if (!(create->table_charset=get_charset_by_name(pos+1, MYF(0))))
{ {
sql_print_error(ER(ER_UNKNOWN_CHARACTER_SET), sql_print_error(ER(ER_UNKNOWN_CHARACTER_SET),pos+1);
pos+1); }
} }
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment