summaryrefslogtreecommitdiff
path: root/mysql-test/t/group_min_max.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/t/group_min_max.test')
-rw-r--r--mysql-test/t/group_min_max.test23
1 files changed, 9 insertions, 14 deletions
diff --git a/mysql-test/t/group_min_max.test b/mysql-test/t/group_min_max.test
index da3fdec80d2..3d751f4a571 100644
--- a/mysql-test/t/group_min_max.test
+++ b/mysql-test/t/group_min_max.test
@@ -655,26 +655,21 @@ select distinct a1 from t1 where a2 = 'b';
# Bug #12672: primary key implcitly included in every innodb index
#
-create table bug12672 (
+--disable_warnings
+create table t4 (
pk_col int auto_increment primary key, a1 char(64), a2 char(64), b char(16), c char(16) not null, d char(16), dummy char(64) default ' '
) engine=innodb;
+--enable_warnings
+insert into t4 (a1, a2, b, c, d, dummy) select * from t1;
-insert into bug12672 (a1, a2, b, c, d, dummy) select * from t1;
-
-create index idx12672_0 on bug12672 (a1);
-create index idx12672_1 on bug12672 (a1,a2,b,c);
-create index idx12672_2 on bug12672 (a1,a2,b);
+create index idx12672_0 on t4 (a1);
+create index idx12672_1 on t4 (a1,a2,b,c);
+create index idx12672_2 on t4 (a1,a2,b);
analyze table t1;
---replace_column 9 #
-explain select distinct a1 from bug12672 where pk_col not in (1,2,3,4);
-select distinct a1 from bug12672 where pk_col not in (1,2,3,4);
-
-drop table bug12672;
+select distinct a1 from t4 where pk_col not in (1,2,3,4);
-drop table t1;
-drop table t2;
-drop table t3;
+drop table t1,t2,t3,t4;
#
# Bug #6142: a problem with the empty innodb table