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/sp_head.cc | |
parent | b372720177cececb499b96b5e6d422b32d85729c (diff) | |
download | mariadb-git-c6d3f8058db30a6621e36b05564a1b2ae68bec7f.tar.gz |
MDEV-7112 Split HA_CREATE_INFO
Diffstat (limited to 'sql/sp_head.cc')
-rw-r--r-- | sql/sp_head.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/sp_head.cc b/sql/sp_head.cc index 100cc3b0450..aa0cb4a92ef 100644 --- a/sql/sp_head.cc +++ b/sql/sp_head.cc @@ -281,13 +281,13 @@ sp_get_flags_for_command(LEX *lex) flags= sp_head::CONTAINS_DYNAMIC_SQL; break; case SQLCOM_CREATE_TABLE: - if (lex->create_info.tmp_table()) + if (lex->tmp_table()) flags= 0; else flags= sp_head::HAS_COMMIT_OR_ROLLBACK; break; case SQLCOM_DROP_TABLE: - if (lex->drop_temporary) + if (lex->tmp_table()) flags= 0; else flags= sp_head::HAS_COMMIT_OR_ROLLBACK; @@ -4000,7 +4000,7 @@ sp_head::merge_table_list(THD *thd, TABLE_LIST *table, LEX *lex_for_tmp_check) SP_TABLE *tab; if (lex_for_tmp_check->sql_command == SQLCOM_DROP_TABLE && - lex_for_tmp_check->drop_temporary) + lex_for_tmp_check->tmp_table()) return TRUE; for (uint i= 0 ; i < m_sptabs.records ; i++) @@ -4065,7 +4065,7 @@ sp_head::merge_table_list(THD *thd, TABLE_LIST *table, LEX *lex_for_tmp_check) return FALSE; if (lex_for_tmp_check->sql_command == SQLCOM_CREATE_TABLE && lex_for_tmp_check->query_tables == table && - lex_for_tmp_check->create_info.tmp_table()) + lex_for_tmp_check->tmp_table()) { tab->temp= TRUE; tab->qname.length= temp_table_key_length; |