diff options
author | Alexander Barkov <bar@mariadb.org> | 2014-12-08 10:56:08 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2014-12-08 10:56:08 +0400 |
commit | c6d3f8058db30a6621e36b05564a1b2ae68bec7f (patch) | |
tree | 0fa3846bc82e7abc7ba46b58776ac98c30412d07 /sql/table.cc | |
parent | b372720177cececb499b96b5e6d422b32d85729c (diff) | |
download | mariadb-git-c6d3f8058db30a6621e36b05564a1b2ae68bec7f.tar.gz |
MDEV-7112 Split HA_CREATE_INFO
Diffstat (limited to 'sql/table.cc')
-rw-r--r-- | sql/table.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/table.cc b/sql/table.cc index 90b880417cc..9bcc8e31d71 100644 --- a/sql/table.cc +++ b/sql/table.cc @@ -2080,7 +2080,7 @@ static bool sql_unusable_for_discovery(THD *thd, handlerton *engine, if (lex->sql_command != SQLCOM_CREATE_TABLE) return 1; // ... create like - if (create_info->options & HA_LEX_CREATE_TABLE_LIKE) + if (lex->create_info.like()) return 1; // ... create select if (lex->select_lex.item_list.elements) @@ -2089,7 +2089,7 @@ static bool sql_unusable_for_discovery(THD *thd, handlerton *engine, if (create_info->tmp_table()) return 1; // ... if exists - if (create_info->options & HA_LEX_CREATE_IF_NOT_EXISTS) + if (lex->create_info.if_not_exists()) return 1; // XXX error out or rather ignore the following: |