Commit 4ecb38d7 authored by Aleksey Midenkov's avatar Aleksey Midenkov

SQL: variadic argument type fix [#307]

parent b0c44d28
......@@ -6933,13 +6933,13 @@ bool Vers_parse_info::check_and_fix_alter(THD *thd, Alter_info *alter_info,
if (!(share->vers_start_field()->flags & HIDDEN_FLAG))
{
my_error(ER_VERS_SYS_FIELD_NOT_HIDDEN, MYF(0),
share->vers_start_field()->field_name);
share->vers_start_field()->field_name.str);
return true;
}
if (!(share->vers_end_field()->flags & HIDDEN_FLAG))
{
my_error(ER_VERS_SYS_FIELD_NOT_HIDDEN, MYF(0),
share->vers_end_field()->field_name);
share->vers_end_field()->field_name.str);
return true;
}
......@@ -6979,7 +6979,7 @@ bool Vers_parse_info::check_and_fix_alter(THD *thd, Alter_info *alter_info,
if (f->change.str && (start == f->change || end == f->change))
{
my_error(ER_VERS_ALTER_SYSTEM_FIELD, MYF(0), f->change);
my_error(ER_VERS_ALTER_SYSTEM_FIELD, MYF(0), f->change.str);
return true;
}
}
......
......@@ -10385,7 +10385,7 @@ Item *Item_field::vers_optimized_fields_transformer(THD *thd, uchar *)
current_thd, Sql_condition::WARN_LEVEL_WARN,
ER_NON_VERSIONED_FIELD_IN_VERSIONED_QUERY,
ER_THD(current_thd, ER_NON_VERSIONED_FIELD_IN_VERSIONED_QUERY),
field_name);
field_name.str);
Item *null_item= new (thd->mem_root) Item_null(thd);
if (null_item)
......
......@@ -953,7 +953,7 @@ bool partition_info::vers_setup_expression(THD * thd, uint32 alter_add)
if (!table->versioned_by_sql())
{
my_error(ER_VERSIONING_REQUIRED, MYF(0), table->s->table_name);
my_error(ER_VERSIONING_REQUIRED, MYF(0), table->s->table_name.str);
return true;
}
......
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