Navigation Menu

Skip to content

Commit

Permalink
[test][wrapper][drop-index] add a test recreate index but not work...
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Sep 1, 2011
1 parent 900c4f8 commit 9ccbff2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/sql/groonga_wrapper/r/fulltext_drop_index.result
Expand Up @@ -25,6 +25,15 @@ id title content
3 富士山 今日もきれい。
drop index title on diaries;
select * from diaries where match(title) against("富士山");
ERROR HY000: Can't find FULLTEXT index matching the column list
select * from diaries;
id title content
1 Hello はじめました。
2 天気 明日の富士山の天気について
3 富士山 今日もきれい。
id title content
create index new_title_index on diaries (title);
select * from diaries where match(title) against("富士山");
id title content
select * from diaries;
id title content
Expand Down
4 changes: 4 additions & 0 deletions test/sql/groonga_wrapper/t/fulltext_drop_index.test
Expand Up @@ -33,6 +33,10 @@ insert into diaries values(2, "天気", "明日の富士山の天気について
insert into diaries values(3, "富士山", "今日もきれい。");
select * from diaries where match(title) against("富士山");
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);
select * from diaries where match(title) against("富士山");
select * from diaries;
drop table diaries;
Expand Down

0 comments on commit 9ccbff2

Please sign in to comment.