mirror of
https://github.com/MariaDB/server.git
synced 2026-04-29 11:45:32 +02:00
parent
c80fc3501b
commit
7a91bf8c91
3 changed files with 26 additions and 9 deletions
|
|
@ -5095,7 +5095,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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue