mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-14862: Server crashes in Bitmap<64u>::merge / add_key_field
Do not unwrap view references to keep table info. (Row-IN subselect does not unwrap items so it does not need fix)
This commit is contained in:
@@ -2070,7 +2070,10 @@ Item_in_subselect::create_single_in_to_exists_cond(JOIN *join,
|
||||
}
|
||||
else
|
||||
{
|
||||
Item *item= (Item*) select_lex->item_list.head()->real_item();
|
||||
Item *item= (Item*) select_lex->item_list.head();
|
||||
if (item->type() != REF_ITEM ||
|
||||
((Item_ref*)item)->ref_type() != Item_ref::VIEW_REF)
|
||||
item= item->real_item();
|
||||
|
||||
if (select_lex->table_list.elements)
|
||||
{
|
||||
|
Reference in New Issue
Block a user