From d96a17ffd1e3001b59a60e5e3d1a43e373cc1f2a Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 22 Mar 2002 16:25:22 +0400 Subject: [PATCH] index name can't be used as key name without space character --- mysql-test/r/heap.result | 2 +- mysql-test/t/heap.test | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mysql-test/r/heap.result b/mysql-test/r/heap.result index fc4a116307e..5a2cd50237e 100644 --- a/mysql-test/r/heap.result +++ b/mysql-test/r/heap.result @@ -62,7 +62,7 @@ explain select * from t1 where a in (869751,736494,226312,802616); table type possible_keys key key_len ref rows Extra t1 range uniq_id uniq_id 4 NULL 4 where used; Using index drop table t1; -create table t1 (x int not null, y int not null, key x(x), unique y(y)) +create table t1 (x int not null, y int not null, key x (x), unique y (y)) type=heap; insert into t1 values (1,1),(2,2),(1,3),(2,4),(2,5),(2,6); select * from t1 where x=1; diff --git a/mysql-test/t/heap.test b/mysql-test/t/heap.test index b08e8f6ea36..43d6a31bc77 100644 --- a/mysql-test/t/heap.test +++ b/mysql-test/t/heap.test @@ -36,7 +36,7 @@ alter table t1 type=myisam; explain select * from t1 where a in (869751,736494,226312,802616); drop table t1; -create table t1 (x int not null, y int not null, key x(x), unique y(y)) +create table t1 (x int not null, y int not null, key x (x), unique y (y)) type=heap; insert into t1 values (1,1),(2,2),(1,3),(2,4),(2,5),(2,6); select * from t1 where x=1;