diff options
Diffstat (limited to 'sql')
-rw-r--r-- | sql/sql_yacc.yy | 1 | ||||
-rw-r--r-- | sql/structs.h | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy index 49655f8f0ce..b9b269933bb 100644 --- a/sql/sql_yacc.yy +++ b/sql/sql_yacc.yy @@ -7212,6 +7212,7 @@ alter_commands: Lex->m_sql_cmd= new (thd->mem_root) Sql_cmd_discard_import_tablespace( Sql_cmd_discard_import_tablespace::IMPORT_TABLESPACE); + Lex->create_info.add(DDL_options_st::OPT_IMPORT_TABLESPACE); if (unlikely(Lex->m_sql_cmd == NULL)) MYSQL_YYABORT; } diff --git a/sql/structs.h b/sql/structs.h index 214fcb242ff..53bf84f8e59 100644 --- a/sql/structs.h +++ b/sql/structs.h @@ -537,7 +537,8 @@ public: OPT_OR_REPLACE_SLAVE_GENERATED= 32,// REPLACE was added on slave, it was // not in the original query on master. OPT_IF_EXISTS= 64, - OPT_CREATE_SELECT= 128 // CREATE ... SELECT + OPT_CREATE_SELECT= 128, // CREATE ... SELECT + OPT_IMPORT_TABLESPACE= 256 // ALTER ... IMPORT TABLESPACE }; private: @@ -566,6 +567,7 @@ public: bool like() const { return m_options & OPT_LIKE; } bool if_exists() const { return m_options & OPT_IF_EXISTS; } bool is_create_select() const { return m_options & OPT_CREATE_SELECT; } + bool import_tablespace() const { return m_options & OPT_IMPORT_TABLESPACE; } void add(const DDL_options_st::Options other) { |