Commit 88e9a0bf authored by bar@bar.mysql.r18.ru's avatar bar@bar.mysql.r18.ru

do not call get_charset_by_name() with string "DEFAULT"

parent a89df5a0
...@@ -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