Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[test] add an expected result for full text search with no such key.
refs #1181.
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
test/sql/suite/groonga_storage/r/fulltext_no_such_key.result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| DROP TABLE IF EXISTS diaries; | ||
| CREATE TABLE diaries ( | ||
| id INT PRIMARY KEY AUTO_INCREMENT, | ||
| title TEXT, | ||
| body TEXT, | ||
| FULLTEXT INDEX title_index (title), | ||
| FULLTEXT INDEX body_index (body) | ||
| ) DEFAULT CHARSET UTF8; | ||
| SHOW CREATE TABLE diaries; | ||
| Table Create Table | ||
| diaries CREATE TABLE `diaries` ( | ||
| `id` int(11) NOT NULL AUTO_INCREMENT, | ||
| `title` text, | ||
| `body` text, | ||
| PRIMARY KEY (`id`), | ||
| FULLTEXT KEY `title_index` (`title`), | ||
| FULLTEXT KEY `body_index` (`body`) | ||
| ) ENGINE=groonga DEFAULT CHARSET=utf8 | ||
| 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 FORCE INDEX(primary) | ||
| WHERE MATCH(title) AGAINST("survey" IN BOOLEAN MODE); | ||
| id title body | ||
| DROP TABLE diaries; |