summaryrefslogtreecommitdiff
path: root/mysql-test/r/view.result
diff options
context:
space:
mode:
authorunknown <sanja@askmonty.org>2013-06-06 23:33:40 +0300
committerunknown <sanja@askmonty.org>2013-06-06 23:33:40 +0300
commitad947563ac9e42090cbcaef00ce0d22708d19f12 (patch)
tree0c8e2f385eda315630ab6d0e31563104883907f7 /mysql-test/r/view.result
parentfce7fc43ba165cd704889c9d35f92e15288f5730 (diff)
downloadmariadb-git-ad947563ac9e42090cbcaef00ce0d22708d19f12.tar.gz
MDEV-4593: p_s: crash in simplify_joins with delete using subselect from view
mysql_derived_merge_for_insert() should not be called for views or derived tables which are not put (directly or via other views) in main SELECT_LEX "join list".
Diffstat (limited to 'mysql-test/r/view.result')
-rw-r--r--mysql-test/r/view.result12
1 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/r/view.result b/mysql-test/r/view.result
index ee6c235d09e..0f666f0e708 100644
--- a/mysql-test/r/view.result
+++ b/mysql-test/r/view.result
@@ -4651,6 +4651,18 @@ a
1
drop view v1;
drop table t1,t2;
+#
+# MDEV-4593: p_s: crash in simplify_joins with delete using subselect
+# from view
+#
+create table `t1`(`a` int);
+create table `t2`(`a` int);
+create or replace view `v1` as select `a` from `t1`;
+prepare s from "delete from `t2` order by (select 1 from `v1`)";
+execute s;
+deallocate prepare s;
+drop view v1;
+drop tables t1,t2;
# -----------------------------------------------------------------
# -- End of 5.3 tests.
# -----------------------------------------------------------------