summaryrefslogtreecommitdiff
path: root/mysql-test/r
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@sun.com>2010-03-16 21:33:56 +0400
committerSergey Vojtovich <svoj@sun.com>2010-03-16 21:33:56 +0400
commit8d514f21459b2bc767d7be00ab05ccf615c33e6b (patch)
tree41d38d2eb60a95fedc7e42faac88276ab60da460 /mysql-test/r
parent5fa73f08d099a644f7b4bcf04c2b93d8af9cfcd5 (diff)
parent88cc3915504a97e6b550eeb323fc1435daa7d5d3 (diff)
downloadmariadb-git-8d514f21459b2bc767d7be00ab05ccf615c33e6b.tar.gz
Merge fix for BUG47444 to mysql-5.1-bugteam.
Diffstat (limited to 'mysql-test/r')
-rw-r--r--mysql-test/r/myisam.result19
1 files changed, 19 insertions, 0 deletions
diff --git a/mysql-test/r/myisam.result b/mysql-test/r/myisam.result
index ba417d54998..5b9745a7b81 100644
--- a/mysql-test/r/myisam.result
+++ b/mysql-test/r/myisam.result
@@ -2389,4 +2389,23 @@ SELECT * FROM t1, t1 AS a1 WHERE t1.a=1 AND a1.a=1;
a a
1 1
DROP TABLE t1;
+#
+# BUG#47444 - --myisam_repair_threads>1can result in all index
+# cardinalities=1
+#
+SET myisam_repair_threads=2;
+SET myisam_sort_buffer_size=4096;
+CREATE TABLE t1(a CHAR(255), KEY(a), KEY(a), KEY(a));
+INSERT INTO t1 VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9),(0),(1),(2),(3);
+REPAIR TABLE t1;
+Table Op Msg_type Msg_text
+test.t1 repair status OK
+SELECT CARDINALITY FROM INFORMATION_SCHEMA.STATISTICS WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
+CARDINALITY
+14
+14
+14
+DROP TABLE t1;
+SET myisam_sort_buffer_size=@@global.myisam_sort_buffer_size;
+SET myisam_repair_threads=@@global.myisam_repair_threads;
End of 5.1 tests