summaryrefslogtreecommitdiff
path: root/mysql-test/t/myisam.test
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2001-11-18 14:08:17 +0200
committerunknown <monty@hundin.mysql.fi>2001-11-18 14:08:17 +0200
commit421595c12e731bb50e6fe6f9985d950e023e4667 (patch)
tree3d0563b3a96cfaa7e8b9b687efcb6f1407f7f58b /mysql-test/t/myisam.test
parent7803c4432cb392ad69dc292038118465c9616121 (diff)
downloadmariadb-git-421595c12e731bb50e6fe6f9985d950e023e4667.tar.gz
Fixed bug in OPTIMIZE TABLE that reset index cardinality if it
was up to date. Docs/manual.texi: ChangeLog configure.in: Version number change mysql-test/r/myisam.result: Test of optimize table mysql-test/t/myisam.test: Test of optimize table
Diffstat (limited to 'mysql-test/t/myisam.test')
-rw-r--r--mysql-test/t/myisam.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/t/myisam.test b/mysql-test/t/myisam.test
index 0dc7f84efc5..5b483b969bc 100644
--- a/mysql-test/t/myisam.test
+++ b/mysql-test/t/myisam.test
@@ -36,3 +36,15 @@ check table t1;
repair table t1;
check table t1;
drop table t1;
+
+#
+# Test bug: Two optimize in a row reset index cardinality
+#
+
+create table t1 (a int not null auto_increment, b int not null, primary key (a), index(b));
+insert into t1 (b) values (1),(2),(2),(2),(2);
+optimize table t1;
+show index from t1;
+optimize table t1;
+show index from t1;
+drop table t1;