summaryrefslogtreecommitdiff
path: root/mysql-test/t/view.test
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2019-07-11 14:50:50 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2019-07-18 10:01:53 +0200
commitcc86a0bd11a436dfe4df0622481c571f83b1680a (patch)
tree6678675e05db8d4c0587e21521f7d655ca33ae51 /mysql-test/t/view.test
parent1a79a29c87eca4dffa393796b7dc4deb62eb0865 (diff)
downloadmariadb-git-cc86a0bd11a436dfe4df0622481c571f83b1680a.tar.gz
MDEV-15572: view.test, server crash with --big-tables=1
Check that table is really opened before cleanup using handler.
Diffstat (limited to 'mysql-test/t/view.test')
-rw-r--r--mysql-test/t/view.test20
1 files changed, 20 insertions, 0 deletions
diff --git a/mysql-test/t/view.test b/mysql-test/t/view.test
index 835f12957d4..0c4680eb5d2 100644
--- a/mysql-test/t/view.test
+++ b/mysql-test/t/view.test
@@ -5674,6 +5674,26 @@ t46, t47, t48, t49, t50, t51, t52, t53, t54,
t55, t56, t57, t58, t59,t60;
drop view v60;
+--echo #
+--echo # MDEV-15572: view.test, server crash with --big-tables=1
+--echo #
+
+set @save_big_tables=@@big_tables;
+set big_tables=ON;
+CREATE TABLE t1 ( f1 int , f2 int , f3 int , f4 int);
+CREATE TABLE t2 ( f1 int , f2 int , f3 int , f4 int);
+
+CREATE VIEW v1 AS
+ SELECT t2.f1, t1.f2, t2.f3, t2.f4 FROM (t1 JOIN t2);
+
+--error ER_VIEW_MULTIUPDATE
+REPLACE INTO v1 (f1, f2, f3, f4)
+ SELECT f1, f2, f3, f4 FROM t1;
+
+drop view v1;
+drop table t1, t2;
+set big_tables=@save_big_tables;
+
--echo # -----------------------------------------------------------------
--echo # -- End of 5.5 tests.
--echo # -----------------------------------------------------------------