Commit 5a5c618e authored by unknown's avatar unknown

do not call get_charset_by_name() with string "DEFAULT"

parent 6383a27b
...@@ -114,10 +114,12 @@ static bool load_db_opt(const char *path, HA_CREATE_INFO *create) ...@@ -114,10 +114,12 @@ static bool load_db_opt(const char *path, HA_CREATE_INFO *create)
{ {
if (!strncmp(buf,"default-character-set", (pos-buf))) if (!strncmp(buf,"default-character-set", (pos-buf)))
{ {
if (!(create->table_charset=get_charset_by_name(pos+1, MYF(0)))) if (strcmp(pos+1,"DEFAULT"))
{ {
sql_print_error(ER(ER_UNKNOWN_CHARACTER_SET), if (!(create->table_charset=get_charset_by_name(pos+1, MYF(0))))
pos+1); {
sql_print_error(ER(ER_UNKNOWN_CHARACTER_SET),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