summaryrefslogtreecommitdiff
path: root/mysql-test/r/myisam.result
diff options
context:
space:
mode:
authorunknown <ingo@mysql.com>2005-08-29 17:08:41 +0200
committerunknown <ingo@mysql.com>2005-08-29 17:08:41 +0200
commitea363750277d129ff466c51fd7e278d09c85a709 (patch)
treea23ac907add770ca003d4702da28e1973a2dd4fc /mysql-test/r/myisam.result
parent6318e449e3e196d5e4ee0db73d63eac5ebd94195 (diff)
downloadmariadb-git-ea363750277d129ff466c51fd7e278d09c85a709.tar.gz
Bug#12296 - CHECKSUM TABLE reports 0 for the table
Skipping deleted records instead of breaking the loop during checksum calculation. mysql-test/r/myisam.result: Bug#12296 - CHECKSUM TABLE reports 0 for the table The test result. mysql-test/t/myisam.test: Bug#12296 - CHECKSUM TABLE reports 0 for the table The test case.
Diffstat (limited to 'mysql-test/r/myisam.result')
-rw-r--r--mysql-test/r/myisam.result14
1 files changed, 14 insertions, 0 deletions
diff --git a/mysql-test/r/myisam.result b/mysql-test/r/myisam.result
index 38273c01a98..1837a4078a7 100644
--- a/mysql-test/r/myisam.result
+++ b/mysql-test/r/myisam.result
@@ -595,3 +595,17 @@ show keys from t1;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment
t1 1 a 1 a A 8 NULL NULL YES BTREE
drop table t1;
+create table t1 (c1 int);
+insert into t1 values (1),(2),(3),(4);
+checksum table t1;
+Table Checksum
+test.t1 149057747
+delete from t1 where c1 = 1;
+create table t2 as select * from t1;
+checksum table t1;
+Table Checksum
+test.t1 984116287
+checksum table t2;
+Table Checksum
+test.t2 984116287
+drop table t1, t2;