Skip to content
Permalink
Browse files
After-merge fix: Add explicit type conversion
Lesson learned: A HA_TOPTION_SYSVAR that is bound to
MYSQL_THDVAR_UINT does not have the type uint, but ulonglong.
  • Loading branch information
dr-m committed Mar 4, 2019
1 parent 9835f7b commit 730ed99
Showing 1 changed file with 4 additions and 3 deletions.
@@ -11301,7 +11301,7 @@ create_table_info_t::create_table_def()
err = row_create_table_for_mysql(
table, m_trx,
fil_encryption_t(options->encryption),
options->encryption_key_id);
uint32_t(options->encryption_key_id));
m_drop_before_rollback = (err == DB_SUCCESS);
}

@@ -11800,12 +11800,13 @@ create_table_info_t::check_table_options()
}
/* fall through */
case FIL_ENCRYPTION_ON:
if (!encryption_key_id_exists(options->encryption_key_id)) {
const uint32_t key_id = uint32_t(options->encryption_key_id);
if (!encryption_key_id_exists(key_id)) {
push_warning_printf(
m_thd, Sql_condition::WARN_LEVEL_WARN,
HA_WRONG_CREATE_OPTION,
"InnoDB: ENCRYPTION_KEY_ID %u not available",
options->encryption_key_id);
key_id);
return "ENCRYPTION_KEY_ID";
}

0 comments on commit 730ed99

Please sign in to comment.