From e00ea301efd9e02f89341dfec3a5e0e751213ed8 Mon Sep 17 00:00:00 2001 From: Oleksandr Byelkin Date: Fri, 21 Oct 2022 13:47:17 +0200 Subject: MDEV-16549 Server crashes in Item_field::fix_fields on query with view and subquery, Assertion `context' failed, Assertion `field' failed Add one-table-resolve context for items created with an aim of switching to temporary table because then it can be cloned in push-down-condition. --- sql/item.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sql/item.h') diff --git a/sql/item.h b/sql/item.h index f28e4fb4bd7..a291678529e 100644 --- a/sql/item.h +++ b/sql/item.h @@ -237,6 +237,8 @@ struct Name_resolution_context: Sql_alloc security_ctx(0) {} + Name_resolution_context(TABLE_LIST *table); + void init() { resolve_in_select_list= FALSE; -- cgit v1.2.1