@@ -11313,7 +11313,7 @@ create_table_info_t::create_option_data_directory_is_valid()
11313
11313
}
11314
11314
11315
11315
/* Do not use DATA DIRECTORY with TEMPORARY TABLE. */
11316
- if (m_create_info->options & HA_LEX_CREATE_TMP_TABLE ) {
11316
+ if (m_create_info->tmp_table() ) {
11317
11317
push_warning(
11318
11318
m_thd, Sql_condition::WARN_LEVEL_WARN,
11319
11319
ER_ILLEGAL_HA_CREATE_OPTION,
@@ -11342,8 +11342,7 @@ create_table_info_t::create_options_are_invalid()
11342
11342
11343
11343
const char* ret = NULL;
11344
11344
enum row_type row_format = m_create_info->row_type;
11345
- const bool is_temp
11346
- = m_create_info->options & HA_LEX_CREATE_TMP_TABLE;
11345
+ const bool is_temp = m_create_info->tmp_table();
11347
11346
11348
11347
ut_ad(m_thd != NULL);
11349
11348
@@ -11709,7 +11708,7 @@ create_table_info_t::parse_table_name(
11709
11708
11710
11709
if (m_innodb_file_per_table
11711
11710
&& !mysqld_embedded
11712
- && !( m_create_info->options & HA_LEX_CREATE_TMP_TABLE )) {
11711
+ && !m_create_info->tmp_table( )) {
11713
11712
11714
11713
if ((name[1] == ':')
11715
11714
|| (name[0] == '\\' && name[1] == '\\')) {
@@ -11764,10 +11763,8 @@ bool create_table_info_t::innobase_table_flags()
11764
11763
enum row_type row_type;
11765
11764
rec_format_t innodb_row_format =
11766
11765
get_row_format(m_default_row_format);
11767
- const bool is_temp
11768
- = m_create_info->options & HA_LEX_CREATE_TMP_TABLE;
11769
- bool zip_allowed
11770
- = !is_temp;
11766
+ const bool is_temp = m_create_info->tmp_table();
11767
+ bool zip_allowed = !is_temp;
11771
11768
11772
11769
const ulint zip_ssize_max =
11773
11770
ut_min(static_cast<ulint>(UNIV_PAGE_SSIZE_MAX),
@@ -12167,9 +12164,8 @@ create_table_info_t::set_tablespace_type(
12167
12164
12168
12165
/* Ignore the current innodb-file-per-table setting if we are
12169
12166
creating a temporary table. */
12170
- m_use_file_per_table =
12171
- m_allow_file_per_table
12172
- && !(m_create_info->options & HA_LEX_CREATE_TMP_TABLE);
12167
+ m_use_file_per_table = m_allow_file_per_table
12168
+ && !m_create_info->tmp_table();
12173
12169
12174
12170
/* DATA DIRECTORY must have m_use_file_per_table but cannot be
12175
12171
used with TEMPORARY tables. */
0 commit comments