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