summaryrefslogtreecommitdiff
path: root/mysql-test/r/derived_view.result
diff options
context:
space:
mode:
authorunknown <sanja@montyprogram.com>2012-05-15 08:31:07 +0300
committerunknown <sanja@montyprogram.com>2012-05-15 08:31:07 +0300
commit3d37b67b2bf978c6755508aef0e0a1e64257f41c (patch)
treeb2f8f7e8db523d2ae6937e11a6b3f9167098f01b /mysql-test/r/derived_view.result
parent6d41fa0d54b7173cd5d700819e022f9c2690f5ec (diff)
downloadmariadb-git-3d37b67b2bf978c6755508aef0e0a1e64257f41c.tar.gz
Fix for LP bug#998516
If we did nothing in resolving unique table conflict we should not retry (it leed to infinite loop). Now we retry (recheck) unique table check only in case if we materialized a table.
Diffstat (limited to 'mysql-test/r/derived_view.result')
-rw-r--r--mysql-test/r/derived_view.result18
1 files changed, 18 insertions, 0 deletions
diff --git a/mysql-test/r/derived_view.result b/mysql-test/r/derived_view.result
index ef8e0a2a9cb..9e6d6db9314 100644
--- a/mysql-test/r/derived_view.result
+++ b/mysql-test/r/derived_view.result
@@ -2087,6 +2087,24 @@ a b
drop table t1;
set optimizer_switch=@save978847_optimizer_switch;
#
+# LP bug998516 Server hangs on INSERT .. SELECT with derived_merge,
+# FROM subquery, UNION
+#
+CREATE TABLE t1 (a INT);
+INSERT INTO t1 VALUES (1),(2);
+CREATE TABLE t2 (b INT);
+INSERT INTO t2 VALUES (3),(4);
+INSERT INTO t1 SELECT * FROM ( SELECT * FROM t1 ) AS alias UNION SELECT * FROM t2;
+select * from t1;
+a
+1
+2
+1
+2
+3
+4
+drop table t1,t2;
+#
# end of 5.3 tests
#
set optimizer_switch=@exit_optimizer_switch;