summaryrefslogtreecommitdiff
path: root/mysql-test/t/partition_pruning.test
diff options
context:
space:
mode:
authorunknown <sergefp@mysql.com>2006-02-06 18:33:39 +0300
committerunknown <sergefp@mysql.com>2006-02-06 18:33:39 +0300
commit4f9e66daa409df056475d28fbed853feaacd2525 (patch)
tree4847689064a2f9b454f3066786b2e9de221e1752 /mysql-test/t/partition_pruning.test
parent6344fd64a515a773c9e68a5cac7c45299851c8e1 (diff)
downloadmariadb-git-4f9e66daa409df056475d28fbed853feaacd2525.tar.gz
WL#2985 "Partition pruning", "do pruning for UPDATE/DELETE": Post-merge fixes
Diffstat (limited to 'mysql-test/t/partition_pruning.test')
-rw-r--r--mysql-test/t/partition_pruning.test15
1 files changed, 7 insertions, 8 deletions
diff --git a/mysql-test/t/partition_pruning.test b/mysql-test/t/partition_pruning.test
index a5821f057c3..30f4f37ee04 100644
--- a/mysql-test/t/partition_pruning.test
+++ b/mysql-test/t/partition_pruning.test
@@ -316,25 +316,24 @@ delete t1,t2 from t1, t2 where t1.a=5 and t2.a=5;
show status like 'Handler_read_rnd_next';
drop table t1,t2;
-# WL# 2986
-DROP TABLE IF EXISTS `t1`;
+#
+# WL#2986 Tests (Checking if partition pruning results are used at query
+# execution phase)
+#
CREATE TABLE `t1` (
`a` int(11) default NULL
);
-
INSERT INTO t1 VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
-DROP TABLE IF EXISTS `t2`;
CREATE TABLE `t2` (
`a` int(11) default NULL,
KEY `a` (`a`)
) ;
insert into t2 select A.a + 10*(B.a + 10* C.a) from t1 A, t1 B, t1 C ;
-
insert into t1 select a from t2;
-DROP TABLE IF EXISTS `t2`;
+drop table t2;
CREATE TABLE `t2` (
`a` int(11) default NULL,
`b` int(11) default NULL
@@ -377,8 +376,7 @@ flush status;
delete from t2 where a > 600;
show status like 'Handler_read_rnd_next';
-
-DROP TABLE IF EXISTS `t2`;
+drop table t2;
CREATE TABLE `t2` (
`a` int(11) default NULL,
`b` int(11) default NULL,
@@ -448,5 +446,6 @@ show status like 'Handler_read_prev';
show status like 'Handler_read_next';
drop table t1, t2;
+
# No tests for NULLs in RANGE(monotonic_expr()) - they depend on BUG#15447
# being fixed.