summaryrefslogtreecommitdiff
path: root/sql/item.h
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2022-10-21 13:47:17 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2022-10-24 12:47:57 +0200
commite00ea301efd9e02f89341dfec3a5e0e751213ed8 (patch)
treee938f7e6ed5808e47023b2ee330394efef9404ec /sql/item.h
parent28d6f6a514366d0358a7215dc7ef202e2b758c10 (diff)
downloadmariadb-git-e00ea301efd9e02f89341dfec3a5e0e751213ed8.tar.gz
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.
Diffstat (limited to 'sql/item.h')
-rw-r--r--sql/item.h2
1 files changed, 2 insertions, 0 deletions
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;