summaryrefslogtreecommitdiff
path: root/sql/item_func.h
diff options
context:
space:
mode:
authorGalina Shalygina <galina.shalygina@mariadb.com>2019-04-24 12:47:40 +0300
committerGalina Shalygina <galina.shalygina@mariadb.com>2019-05-08 13:23:34 +0300
commitf2e27d53da669912eab346783bb2f785d552631e (patch)
tree054bb2db0109ab9e10836e3e05416dc6a1135f46 /sql/item_func.h
parente0271a7b43c6df652c6a074858853a6d0da20c1e (diff)
downloadmariadb-git-f2e27d53da669912eab346783bb2f785d552631e.tar.gz
MDEV-19139: pushdown condition with Item_func_set_user_var
The bug occurs because Item_func_set_user var is allowed to be pushed into materialized derived table/view. To fix it excl_dep_on_table() as added to Item_func_set_user_var class to prevent pushdown.
Diffstat (limited to 'sql/item_func.h')
-rw-r--r--sql/item_func.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item_func.h b/sql/item_func.h
index cd8e4c08168..7592fc9b779 100644
--- a/sql/item_func.h
+++ b/sql/item_func.h
@@ -1992,6 +1992,7 @@ public:
void cleanup();
Item *get_copy(THD *thd, MEM_ROOT *mem_root)
{ return get_item_copy<Item_func_set_user_var>(thd, mem_root, this); }
+ bool excl_dep_on_table(table_map tab_map) { return false; }
};