[Groonga-mysql-commit] mroonga/mroonga [master] [wrapper][test] readd a removed test.

Back to archive index

null+****@clear***** null+****@clear*****
2011年 9月 25日 (日) 20:41:58 JST


Kouhei Sutou	2011-09-25 11:41:58 +0000 (Sun, 25 Sep 2011)

  New Revision: 86ca93114b412cf0731a9d4e32d8923440238fc5

  Log:
    [wrapper][test] readd a removed test.
    
    It doesn't have match against conditions in selected columns.

  Modified files:
    test/sql/groonga_wrapper/r/fulltext_multiple_index.result
    test/sql/groonga_wrapper/t/fulltext_multiple_index.test

  Modified: test/sql/groonga_wrapper/r/fulltext_multiple_index.result (+5 -0)
===================================================================
--- test/sql/groonga_wrapper/r/fulltext_multiple_index.result    2011-09-25 11:39:49 +0000 (993ab87)
+++ test/sql/groonga_wrapper/r/fulltext_multiple_index.result    2011-09-25 11:41:58 +0000 (20ca878)
@@ -19,6 +19,11 @@ 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
+where match(title) against("survey") and
+match(body) against("groonga");
+id	title	body
+1	survey	will start groonga!
 select *, match(title) against("survey"), match(body) against("groonga")
 from diaries
 where match(title) against("survey") and

  Modified: test/sql/groonga_wrapper/t/fulltext_multiple_index.test (+4 -0)
===================================================================
--- test/sql/groonga_wrapper/t/fulltext_multiple_index.test    2011-09-25 11:39:49 +0000 (cc88083)
+++ test/sql/groonga_wrapper/t/fulltext_multiple_index.test    2011-09-25 11:41:58 +0000 (e166989)
@@ -33,6 +33,10 @@ 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
+  where match(title) against("survey") and
+        match(body) against("groonga");
+
 select *, match(title) against("survey"), match(body) against("groonga")
   from diaries
   where match(title) against("survey") and




Groonga-mysql-commit メーリングリストの案内
Back to archive index