summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorGalina Shalygina <galina.shalygina@mariadb.com>2019-04-06 00:04:52 +0300
committerGalina Shalygina <galina.shalygina@mariadb.com>2019-04-06 00:04:52 +0300
commita2e477ffd0414248d1d3af2eeafe1e3cffddebc6 (patch)
tree24ecc1c126f72aa5bbcb3e5d226669d8e93b2ddf /sql
parent694d1a50bd7754c5357dde184f87d63b7032ee5e (diff)
downloadmariadb-git-a2e477ffd0414248d1d3af2eeafe1e3cffddebc6.tar.gz
MDEV-19186: Assertion `field->table == table' failed in create_tmp_table
Temporary table is defined with the view field in HAVING. Item_direct_view_ref for this field is dropped and that causes error. To fix it Item_direct_view_ref::remove_item_direct_ref() is added.
Diffstat (limited to 'sql')
-rw-r--r--sql/item.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item.h b/sql/item.h
index 716b411082f..97d31e6ba34 100644
--- a/sql/item.h
+++ b/sql/item.h
@@ -5733,6 +5733,7 @@ public:
{ return get_item_copy<Item_direct_view_ref>(thd, this); }
Item *field_transformer_for_having_pushdown(THD *thd, uchar *arg)
{ return this; }
+ Item *remove_item_direct_ref() { return this; }
};