Navigation Menu

Skip to content

Commit

Permalink
[test][wrapper][drop-index] add missing 'fulltext'.
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Sep 1, 2011
1 parent 9ccbff2 commit 4f2ce55
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions test/sql/groonga_wrapper/r/fulltext_drop_index.result
Expand Up @@ -4,9 +4,7 @@ create table diaries (
id int primary key,
title varchar(255),
content text,
fulltext index (title, content),
fulltext index (title),
fulltext index (content)
fulltext index (title)
) default charset utf8 COMMENT = 'engine "innodb"';
show create table diaries;
Table Create Table
Expand All @@ -31,10 +29,10 @@ id title content
1 Hello はじめました。
2 天気 明日の富士山の天気について
3 富士山 今日もきれい。
id title content
create index new_title_index on diaries (title);
create fulltext index new_title_index on diaries (title);
select * from diaries where match(title) against("富士山");
id title content
3 富士山 今日もきれい。
select * from diaries;
id title content
1 Hello はじめました。
Expand Down
2 changes: 1 addition & 1 deletion test/sql/groonga_wrapper/t/fulltext_drop_index.test
Expand Up @@ -36,7 +36,7 @@ drop index title on diaries;
--error 1191
select * from diaries where match(title) against("富士山");
select * from diaries;
create index new_title_index on diaries (title);
create fulltext index new_title_index on diaries (title);
select * from diaries where match(title) against("富士山");
select * from diaries;
drop table diaries;
Expand Down

0 comments on commit 4f2ce55

Please sign in to comment.