summaryrefslogtreecommitdiff
path: root/mysql-test/t/merge.test
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2017-07-07 19:55:31 +0200
committerSergei Golubchik <serg@mariadb.org>2017-07-07 22:38:15 +0200
commitc65cce3698edde272b8452c1fecec3d9522cea6e (patch)
treebddc69fadd7a800aaf0cea2d7cdc3e3008db0e8a /mysql-test/t/merge.test
parentabf95afa2a1c23f3c7aa42f44fc665450ebeeea1 (diff)
downloadmariadb-git-c65cce3698edde272b8452c1fecec3d9522cea6e.tar.gz
MDEV-12137 DELETE statement with the same source and target
* various cleanups (mostly cosmetic) * remove useless tests (that were tesing the error condition) * optimize delete_use_source test (from 6 mins to 50 seconds, mainly by removing two huge rollbacks at the end).
Diffstat (limited to 'mysql-test/t/merge.test')
-rw-r--r--mysql-test/t/merge.test60
1 files changed, 0 insertions, 60 deletions
diff --git a/mysql-test/t/merge.test b/mysql-test/t/merge.test
index c35dd39170b..95c78caf034 100644
--- a/mysql-test/t/merge.test
+++ b/mysql-test/t/merge.test
@@ -2763,66 +2763,6 @@ update m1 set a = ((select max(a) from tmp, t2));
update m1 set a = ((select max(a) from v1));
--error ER_VIEW_PREVENT_UPDATE
update m1 set a = ((select max(a) from tmp, v1));
-# Works since MDEV-12137
-# previously :ER_UPDATE_TABLE_USED
-delete from m1 where a = (select max(a) from m1);
-insert into t1 (a) values (1);
-insert into t2 (a) values (1);
-# previously :ER_UPDATE_TABLE_USED
-delete from m1 where a = (select max(a) from m2);
-insert into t1 (a) values (1);
-insert into t2 (a) values (1);
-# previously :ER_UPDATE_TABLE_USED
-delete from m1 where a = (select max(a) from t1);
-insert into t1 (a) values (1);
-insert into t2 (a) values (1);
-# previously :ER_UPDATE_TABLE_USED
-delete from m1 where a = (select max(a) from t2);
-insert into t1 (a) values (1);
-insert into t2 (a) values (1);
-
-# previously :ER_UPDATE_TABLE_USED
-delete from m1 where a = (select max(a) from t3, m1);
-insert into t1 (a) values (1);
-insert into t2 (a) values (1);
-# previously :ER_UPDATE_TABLE_USED
-delete from m1 where a = (select max(a) from t3, m2);
-insert into t1 (a) values (1);
-insert into t2 (a) values (1);
-# previously :ER_UPDATE_TABLE_USED
-delete from m1 where a = (select max(a) from t3, t1);
-insert into t1 (a) values (1);
-insert into t2 (a) values (1);
-# previously :ER_UPDATE_TABLE_USED
-delete from m1 where a = (select max(a) from t3, t2);
-insert into t1 (a) values (1);
-insert into t2 (a) values (1);
-
-# previously :ER_UPDATE_TABLE_USED
-delete from m1 where a = (select max(a) from tmp, m1);
-insert into t1 (a) values (1);
-insert into t2 (a) values (1);
-# previously :ER_UPDATE_TABLE_USED
-delete from m1 where a = (select max(a) from tmp, m2);
-insert into t1 (a) values (1);
-insert into t2 (a) values (1);
-# previously :ER_UPDATE_TABLE_USED
-delete from m1 where a = (select max(a) from tmp, t1);
-insert into t1 (a) values (1);
-insert into t2 (a) values (1);
-# previously :ER_UPDATE_TABLE_USED
-delete from m1 where a = (select max(a) from tmp, t2);
-insert into t1 (a) values (1);
-insert into t2 (a) values (1);
-
-# previously : ER_VIEW_PREVENT_UPDATE
-delete from m1 where a = (select max(a) from v1);
-insert into t1 (a) values (1);
-insert into t2 (a) values (1);
-# previously : ER_VIEW_PREVENT_UPDATE
-delete from m1 where a = (select max(a) from tmp, v1);
-insert into t1 (a) values (1);
-insert into t2 (a) values (1);
drop view v1;
drop temporary table tmp;