Commit 730ed990 authored by Marko Mäkelä's avatar Marko Mäkelä

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.
parent 9835f7b8
......@@ -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";
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment