Commit 746f794c authored by Alexander Barkov's avatar Alexander Barkov

MDEV-12657 A few tests fail in build-bot on Windows after changing...

MDEV-12657 A few tests fail in build-bot on Windows after changing Field::field_name and Item::name to LEX_CSTRING
parent 07143a73
...@@ -8762,7 +8762,7 @@ bool Item_default_value::fix_fields(THD *thd, Item **items) ...@@ -8762,7 +8762,7 @@ bool Item_default_value::fix_fields(THD *thd, Item **items)
real_arg= arg->real_item(); real_arg= arg->real_item();
if (real_arg->type() != FIELD_ITEM) if (real_arg->type() != FIELD_ITEM)
{ {
my_error(ER_NO_DEFAULT_FOR_FIELD, MYF(0), arg->name); my_error(ER_NO_DEFAULT_FOR_FIELD, MYF(0), arg->name.str);
goto error; goto error;
} }
......
...@@ -1922,7 +1922,7 @@ void partition_info::report_part_expr_error(bool use_subpart_expr) ...@@ -1922,7 +1922,7 @@ void partition_info::report_part_expr_error(bool use_subpart_expr)
!(type == HASH_PARTITION && list_of_fields)) !(type == HASH_PARTITION && list_of_fields))
{ {
my_error(ER_FIELD_TYPE_NOT_ALLOWED_AS_PARTITION_FIELD, MYF(0), my_error(ER_FIELD_TYPE_NOT_ALLOWED_AS_PARTITION_FIELD, MYF(0),
item_field->name); item_field->name.str);
DBUG_VOID_RETURN; DBUG_VOID_RETURN;
} }
} }
......
...@@ -3134,7 +3134,7 @@ int select_export::send_data(List<Item> &items) ...@@ -3134,7 +3134,7 @@ int select_export::send_data(List<Item> &items)
ER_TRUNCATED_WRONG_VALUE_FOR_FIELD, ER_TRUNCATED_WRONG_VALUE_FOR_FIELD,
ER_THD(thd, ER_TRUNCATED_WRONG_VALUE_FOR_FIELD), ER_THD(thd, ER_TRUNCATED_WRONG_VALUE_FOR_FIELD),
"string", printable_buff, "string", printable_buff,
item->name, static_cast<long>(row_count)); item->name.str, static_cast<long>(row_count));
} }
else if (copier.source_end_pos() < res->ptr() + res->length()) else if (copier.source_end_pos() < res->ptr() + res->length())
{ {
......
...@@ -156,7 +156,7 @@ bool check_duplicate_names(THD *thd, List<Item> &item_list, bool gen_unique_view ...@@ -156,7 +156,7 @@ bool check_duplicate_names(THD *thd, List<Item> &item_list, bool gen_unique_view
DBUG_RETURN(FALSE); DBUG_RETURN(FALSE);
err: err:
my_error(ER_DUP_FIELDNAME, MYF(0), item->name); my_error(ER_DUP_FIELDNAME, MYF(0), item->name.str);
DBUG_RETURN(TRUE); DBUG_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