summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorunknown <sergefp@mysql.com>2004-05-19 23:20:42 +0400
committerunknown <sergefp@mysql.com>2004-05-19 23:20:42 +0400
commit32f2ecd4751968104fa5c07f5311683e92632c08 (patch)
treedbdbcf11780f6466655401b96976884f9d720c96 /mysql-test
parent6e8252a534ae419f1209bb717631849656f5e7eb (diff)
parentea44ccb00f770387bad01eff938866a38d013a75 (diff)
downloadmariadb-git-32f2ecd4751968104fa5c07f5311683e92632c08.tar.gz
Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-4.0
into mysql.com:/dbdata/psergey/mysql-4.0-root
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/handler.result12
-rw-r--r--mysql-test/t/handler.test12
2 files changed, 24 insertions, 0 deletions
diff --git a/mysql-test/r/handler.result b/mysql-test/r/handler.result
index 1cfc3a9de8b..50d51cf14f4 100644
--- a/mysql-test/r/handler.result
+++ b/mysql-test/r/handler.result
@@ -191,3 +191,15 @@ Ok
handler t close;
use test;
drop table t1;
+create table t1 ( a int, b int, INDEX a (a) );
+insert into t1 values (1,2), (2,1);
+handler t1 open;
+handler t1 read a=(1) where b=2;
+a b
+1 2
+handler t1 read a=(1) where b=3;
+a b
+handler t1 read a=(1) where b=1;
+a b
+handler t1 close;
+drop table t1;
diff --git a/mysql-test/t/handler.test b/mysql-test/t/handler.test
index 936902fd9bf..1f7f32c930a 100644
--- a/mysql-test/t/handler.test
+++ b/mysql-test/t/handler.test
@@ -123,3 +123,15 @@ handler t close;
use test;
drop table t1;
+#
+# BUG#3649
+#
+create table t1 ( a int, b int, INDEX a (a) );
+insert into t1 values (1,2), (2,1);
+handler t1 open;
+handler t1 read a=(1) where b=2;
+handler t1 read a=(1) where b=3;
+handler t1 read a=(1) where b=1;
+handler t1 close;
+drop table t1;
+