mirror of
https://github.com/MariaDB/server.git
synced 2026-04-22 16:25:30 +02:00
MDEV-5867 ALTER TABLE t1 ENGINE=InnoDB keeps bad options when t1 ENGINE is CONNECT
Comment out unknown options in SHOW CREATE TABLE unless IGNORE_BAD_TABLE_OPTIONS is used
This commit is contained in:
parent
5045615cd9
commit
086a81986b
9 changed files with 142 additions and 7 deletions
|
|
@ -775,3 +775,20 @@ engine_option_value *merge_engine_table_options(engine_option_value *first,
|
|||
&first, &end);
|
||||
DBUG_RETURN(first);
|
||||
}
|
||||
|
||||
bool is_engine_option_known(engine_option_value *opt,
|
||||
ha_create_table_option *rules)
|
||||
{
|
||||
if (!rules)
|
||||
return false;
|
||||
|
||||
for (; rules->name; rules++)
|
||||
{
|
||||
if (!my_strnncoll(system_charset_info,
|
||||
(uchar*)rules->name, rules->name_length,
|
||||
(uchar*)opt->name.str, opt->name.length))
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue