mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
automerge
This commit is contained in:
@ -7375,7 +7375,13 @@ int setup_wild(THD *thd, TABLE_LIST *tables, List<Item> &fields,
|
||||
/* make * substituting permanent */
|
||||
SELECT_LEX *select_lex= thd->lex->current_select;
|
||||
select_lex->with_wild= 0;
|
||||
select_lex->item_list= fields;
|
||||
/*
|
||||
The assignment below is translated to memcpy() call (at least on some
|
||||
platforms). memcpy() expects that source and destination areas do not
|
||||
overlap. That problem was detected by valgrind.
|
||||
*/
|
||||
if (&select_lex->item_list != &fields)
|
||||
select_lex->item_list= fields;
|
||||
|
||||
thd->restore_active_arena(arena, &backup);
|
||||
}
|
||||
|
Reference in New Issue
Block a user