summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorAnnamalai Gurusami <annamalai.gurusami@oracle.com>2011-12-13 17:10:09 +0530
committerAnnamalai Gurusami <annamalai.gurusami@oracle.com>2011-12-13 17:10:09 +0530
commit0ff2a90b8a481a6dc3a105e6f0b6a56a6bafd4a1 (patch)
tree813f036d890ac8c8e19783a7be1746d25a5b923f /mysql-test
parent1ef5e39e0b132de7d12954de7e8b2128c71084a5 (diff)
parent22b38304836ff60d9929e0988676a33397c45b45 (diff)
downloadmariadb-git-0ff2a90b8a481a6dc3a105e6f0b6a56a6bafd4a1.tar.gz
Merging from mysql-5.1 to mysql-5.5.
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/suite/innodb/r/innodb.result11
-rw-r--r--mysql-test/suite/innodb/t/innodb.test11
2 files changed, 22 insertions, 0 deletions
diff --git a/mysql-test/suite/innodb/r/innodb.result b/mysql-test/suite/innodb/r/innodb.result
index 54908961b1c..27b51ea8262 100644
--- a/mysql-test/suite/innodb/r/innodb.result
+++ b/mysql-test/suite/innodb/r/innodb.result
@@ -3191,3 +3191,14 @@ Handler_update 1
Variable_name Value
Handler_delete 1
DROP TABLE bug58912;
+create table t1 (f1 integer primary key) engine=innodb;
+flush status;
+show status like "handler_read_key";
+Variable_name Value
+Handler_read_key 0
+select f1 from t1;
+f1
+show status like "handler_read_key";
+Variable_name Value
+Handler_read_key 1
+drop table t1;
diff --git a/mysql-test/suite/innodb/t/innodb.test b/mysql-test/suite/innodb/t/innodb.test
index 0b0e746bf2f..3038bb0331e 100644
--- a/mysql-test/suite/innodb/t/innodb.test
+++ b/mysql-test/suite/innodb/t/innodb.test
@@ -2578,6 +2578,17 @@ SET GLOBAL innodb_thread_concurrency = @innodb_thread_concurrency_orig;
# Clean up after the Bug#55284/Bug#58912 test case.
DROP TABLE bug58912;
+#
+# Test fix for bug 13117023. InnoDB increments HA_READ_KEY_COUNT (aka
+# HANDLER_READ_KEY) when it should not.
+#
+create table t1 (f1 integer primary key) engine=innodb;
+flush status;
+show status like "handler_read_key";
+select f1 from t1;
+show status like "handler_read_key";
+drop table t1;
+
#######################################################################
# #
# Please, DO NOT TOUCH this file as well as the innodb.result file. #