diff options
author | Michael Widenius <monty@askmonty.org> | 2012-01-13 14:35:49 +0200 |
---|---|---|
committer | Michael Widenius <monty@askmonty.org> | 2012-01-13 14:35:49 +0200 |
commit | 5438d57315a3cb2b75f63f83de7e50d12645e421 (patch) | |
tree | a4c79aabda6f2dea97ae1d246ac4af79c4b4655a /mysql-test/t | |
parent | 296b450d3b58ded0fd4d4972161414c6cc7a80e5 (diff) | |
download | mariadb-git-5438d57315a3cb2b75f63f83de7e50d12645e421.tar.gz |
Added Handler_read_rnd_deleted, number of deleted rows found with ha_read_rnd_first.
Diffstat (limited to 'mysql-test/t')
-rw-r--r-- | mysql-test/t/partition_pruning.test | 2 | ||||
-rw-r--r-- | mysql-test/t/status.test | 10 |
2 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/t/partition_pruning.test b/mysql-test/t/partition_pruning.test index f1ec8964769..f12593d746f 100644 --- a/mysql-test/t/partition_pruning.test +++ b/mysql-test/t/partition_pruning.test @@ -1086,12 +1086,14 @@ show status like 'Handler_read_key'; flush status; delete from t2 where b > 5; show status like 'Handler_read_rnd_next'; +show status like 'Handler_read_rnd_deleted'; show status like 'Handler_read_key'; show status like 'Handler_read_prev'; show status like 'Handler_read_next'; flush status; delete from t2 where b < 5 or b > 3; show status like 'Handler_read_rnd_next'; +show status like 'Handler_read_rnd_deleted'; show status like 'Handler_read_key'; show status like 'Handler_read_prev'; show status like 'Handler_read_next'; diff --git a/mysql-test/t/status.test b/mysql-test/t/status.test index 46e454363cc..8cc938c923e 100644 --- a/mysql-test/t/status.test +++ b/mysql-test/t/status.test @@ -368,6 +368,16 @@ show status like 'Handler%'; show status like '%tmp%'; drop table t1; +# +# Test of handler status counts +# +CREATE TABLE t1 (i int(11) DEFAULT NULL, KEY i (i) ) ENGINE=MyISAM; +insert into t1 values (1),(2),(3),(4),(5); +flush status; +select * from t1 where i=5 union select * from t1 where i=5; +show status like "handler%"; +drop table t1; + # End of 5.3 tests # Restore global concurrent_insert value. Keep in the end of the test file. |