Navigation Menu

Skip to content

Commit

Permalink
[wrapper][test] use multi match against conditions as selected columns.
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Sep 25, 2011
1 parent 95f52b4 commit fad07e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions test/sql/groonga_wrapper/r/fulltext_multiple_index.result
Expand Up @@ -19,9 +19,10 @@ diaries CREATE TABLE `diaries` (
insert into diaries (title, body) values ("survey", "will start groonga!");
insert into diaries (title, body) values ("groonga (1)", "starting groonga...");
insert into diaries (title, body) values ("groonga (2)", "started groonga.");
select * from diaries
select *, match(title) against("survey"), match(body) against("groonga")
from diaries
where match(title) against("survey") and
match(body) against("groonga");
id title body
1 survey will start groonga!
id title body match(title) against("survey") match(body) against("groonga")
1 survey will start groonga! 1 1
drop table diaries;
3 changes: 2 additions & 1 deletion test/sql/groonga_wrapper/t/fulltext_multiple_index.test
Expand Up @@ -33,7 +33,8 @@ insert into diaries (title, body) values ("survey", "will start groonga!");
insert into diaries (title, body) values ("groonga (1)", "starting groonga...");
insert into diaries (title, body) values ("groonga (2)", "started groonga.");

select * from diaries
select *, match(title) against("survey"), match(body) against("groonga")
from diaries
where match(title) against("survey") and
match(body) against("groonga");

Expand Down

0 comments on commit fad07e5

Please sign in to comment.