Commit a626abb6 authored by Nikita Malyavin's avatar Nikita Malyavin

Fix LEX_CSTRING passed as argument of printf-like functions

parent fb5ee3ff
...@@ -808,7 +808,7 @@ int set_var::light_check(THD *thd) ...@@ -808,7 +808,7 @@ int set_var::light_check(THD *thd)
if (var->check_type(type)) if (var->check_type(type))
{ {
int err= type == OPT_GLOBAL ? ER_LOCAL_VARIABLE : ER_GLOBAL_VARIABLE; int err= type == OPT_GLOBAL ? ER_LOCAL_VARIABLE : ER_GLOBAL_VARIABLE;
my_error(err, MYF(0), var->name); my_error(err, MYF(0), var->name.str);
return -1; return -1;
} }
if (type == OPT_GLOBAL && check_global_access(thd, SUPER_ACL)) if (type == OPT_GLOBAL && check_global_access(thd, SUPER_ACL))
......
...@@ -683,7 +683,7 @@ mysql_ha_fix_cond_and_key(SQL_HANDLER *handler, ...@@ -683,7 +683,7 @@ mysql_ha_fix_cond_and_key(SQL_HANDLER *handler,
HA_ONLY_WHOLE_INDEX)) HA_ONLY_WHOLE_INDEX))
{ {
my_error(ER_KEY_DOESNT_SUPPORT, MYF(0), my_error(ER_KEY_DOESNT_SUPPORT, MYF(0),
table->file->index_type(handler->keyno), keyinfo->name); table->file->index_type(handler->keyno), keyinfo->name.str);
return 1; return 1;
} }
......
...@@ -6474,7 +6474,7 @@ ha_innobase::prepare_inplace_alter_table( ...@@ -6474,7 +6474,7 @@ ha_innobase::prepare_inplace_alter_table(
Sql_condition::WARN_LEVEL_WARN, Sql_condition::WARN_LEVEL_WARN,
HA_ERR_WRONG_INDEX, HA_ERR_WRONG_INDEX,
"InnoDB could not find key" "InnoDB could not find key"
" with name %s", key->name); " with name %s", key->name.str);
} else { } else {
ut_ad(!index->to_be_dropped); ut_ad(!index->to_be_dropped);
if (!index->is_primary()) { if (!index->is_primary()) {
......
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