summaryrefslogtreecommitdiff
path: root/mysql-test/r/myisam.result
diff options
context:
space:
mode:
authorunknown <gkodinov/kgeorge@magare.gmz>2007-05-22 17:57:14 +0300
committerunknown <gkodinov/kgeorge@magare.gmz>2007-05-22 17:57:14 +0300
commitacd939c3d27907e5c00dd2bde81a2c4a364cea8b (patch)
tree8c6fbb96c87a29c64c7a044871e7fb1b8f47970e /mysql-test/r/myisam.result
parent6ae6d268922d426562fa67e9e738a5a4ba9f7212 (diff)
parent3332b80130172656c1e483e5bc9aa2bcfe741a8f (diff)
downloadmariadb-git-acd939c3d27907e5c00dd2bde81a2c4a364cea8b.tar.gz
Merge magare.gmz:/home/kgeorge/mysql/work/B28476-5.0-opt
into magare.gmz:/home/kgeorge/mysql/work/B28476-5.1-opt Zero merge all except the new test mysql-test/r/key.result: bug #28476: zero-merge to 5.1 mysql-test/r/myisam.result: bug #28476: merge to 5.1 mysql-test/t/key.test: bug #28476: zero-merge to 5.1 mysql-test/t/myisam.test: bug #28476: merge to 5.1 sql/sql_base.cc: bug #28476: zero-merge to 5.1 sql/sql_select.cc: bug #28476: zero-merge to 5.1 sql/table.h: bug #28476: zero-merge to 5.1
Diffstat (limited to 'mysql-test/r/myisam.result')
-rw-r--r--mysql-test/r/myisam.result26
1 files changed, 26 insertions, 0 deletions
diff --git a/mysql-test/r/myisam.result b/mysql-test/r/myisam.result
index e9d798d998d..06ed1430059 100644
--- a/mysql-test/r/myisam.result
+++ b/mysql-test/r/myisam.result
@@ -1768,6 +1768,32 @@ create table t3 (c1 int) engine=myisam pack_keys=default;
create table t4 (c1 int) engine=myisam pack_keys=2;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '2' at line 1
drop table t1, t2, t3;
+CREATE TABLE t1(a INT, b INT, KEY inx (a), UNIQUE KEY uinx (b)) ENGINE=MyISAM;
+INSERT INTO t1(a,b) VALUES (1,1),(2,2),(3,3),(4,4),(5,5);
+SELECT a FROM t1 FORCE INDEX (inx) WHERE a=1;
+a
+1
+ALTER TABLE t1 DISABLE KEYS;
+SELECT a FROM t1 FORCE INDEX (inx) WHERE a=1;
+a
+1
+SELECT a FROM t1 USE INDEX (inx) WHERE a=1;
+a
+1
+SELECT b FROM t1 FORCE INDEX (uinx) WHERE b=1;
+b
+1
+SELECT b FROM t1 USE INDEX (uinx) WHERE b=1;
+b
+1
+SELECT a FROM t1 FORCE INDEX (inx,uinx) WHERE a=1;
+a
+1
+ALTER TABLE t1 ENABLE KEYS;
+SELECT a FROM t1 FORCE INDEX (inx) WHERE a=1;
+a
+1
+DROP TABLE t1;
End of 5.0 tests
create table t1 (a int not null, key `a` (a) key_block_size=1024);
show create table t1;