mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
sql_db.cc:
mysqld crashes on CREATE TABLE in a database with corrupted db.opt file. Bug#4646 sql/sql_db.cc: mysqld crashes on CREATE TABLE in a database with corrupted db.opt file. Bug#4646
This commit is contained in:
parent
3cf19c3af5
commit
9d670dfab5
1 changed files with 2 additions and 0 deletions
|
@ -327,6 +327,7 @@ bool load_db_opt(THD *thd, const char *path, HA_CREATE_INFO *create)
|
|||
{
|
||||
sql_print_error("Error while loading database options: '%s':",path);
|
||||
sql_print_error(ER(ER_UNKNOWN_CHARACTER_SET),pos+1);
|
||||
create->default_table_charset= default_charset_info;
|
||||
}
|
||||
}
|
||||
else if (!strncmp(buf,"default-collation", (pos-buf)))
|
||||
|
@ -336,6 +337,7 @@ bool load_db_opt(THD *thd, const char *path, HA_CREATE_INFO *create)
|
|||
{
|
||||
sql_print_error("Error while loading database options: '%s':",path);
|
||||
sql_print_error(ER(ER_UNKNOWN_COLLATION),pos+1);
|
||||
create->default_table_charset= default_charset_info;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue