Navigation Menu

Skip to content

Commit

Permalink
test: use error name instead of error code
Browse files Browse the repository at this point in the history
1005 ->
ER_CANT_CREATE_TABLE
  • Loading branch information
kou committed Nov 17, 2012
1 parent b00493f commit 19e1bc6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/sql/suite/mroonga/storage/create/table/t/TODO_SPLIT_ME.test
Expand Up @@ -121,25 +121,25 @@ desc t1;
drop table t1;

# error
--error 1005
--error ER_CANT_CREATE_TABLE
create table t1 (c1 int, `_score` float) engine = mroonga;

# checking for virtual columns
--error 1005
--error ER_CANT_CREATE_TABLE
create table t1 (c1 int, `_id` text) engine = mroonga;
--error 1005
--error ER_CANT_CREATE_TABLE
create table t1 (c1 int, `_id` int, index(`_id`)) engine = mroonga;

# index for _id
--error 1005
--error ER_CANT_CREATE_TABLE
create table t1 (_id int, c1 int, primary key (_id));
create table t1 (_id int, c1 int, primary key (_id) using hash);
drop table t1;
--error 1005
--error ER_CANT_CREATE_TABLE
create table t1 (_id int, c1 int, unique key (_id));
create table t1 (_id int, c1 int, unique key (_id) using hash);
drop table t1;
--error 1005
--error ER_CANT_CREATE_TABLE
create table t1 (_id int, c1 int, key (_id));
create table t1 (_id int, c1 int, key (_id) using hash);
drop table t1;
Expand Down

0 comments on commit 19e1bc6

Please sign in to comment.