mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-19566 Remove Item::name related strlen() calls in constructors of some Item_string descendands
This commit is contained in:
@ -5749,8 +5749,7 @@ find_field_in_view(THD *thd, TABLE_LIST *table_list,
|
||||
the replacing item.
|
||||
*/
|
||||
if (*ref && !(*ref)->is_autogenerated_name)
|
||||
item->set_name(thd, (*ref)->name.str, (*ref)->name.length,
|
||||
system_charset_info);
|
||||
item->set_name(thd, (*ref)->name);
|
||||
if (register_tree_change)
|
||||
thd->change_item_tree(ref, item);
|
||||
else
|
||||
@ -5841,8 +5840,7 @@ find_field_in_natural_join(THD *thd, TABLE_LIST *table_ref, const char *name, si
|
||||
the replacing item.
|
||||
*/
|
||||
if (*ref && !(*ref)->is_autogenerated_name)
|
||||
item->set_name(thd, (*ref)->name.str, (*ref)->name.length,
|
||||
system_charset_info);
|
||||
item->set_name(thd, (*ref)->name);
|
||||
if (register_tree_change && arena)
|
||||
thd->restore_active_arena(arena, &backup);
|
||||
|
||||
|
Reference in New Issue
Block a user