1
0
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:
Oleksandr Byelkin
2018-01-29 09:44:17 +01:00
parent d6638586c6
commit 96cb428b35
3 changed files with 27 additions and 1 deletions

View File

@@ -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)
{