Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
select match_columns: report error for invalid match_columns
GitHub: fix #269 Reported by Naoya Murakami. Thanks!!!
- Loading branch information
Showing
3 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
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
17 changes: 17 additions & 0 deletions
17
test/command/suite/select/match_columns/invalid/table.expected
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,17 @@ | ||
| table_create Memos TABLE_NO_KEY | ||
| [[0,0.0,0.0],true] | ||
| column_create Memos title COLUMN_SCALAR ShortText | ||
| [[0,0.0,0.0],true] | ||
| table_create Lexicon TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram | ||
| [[0,0.0,0.0],true] | ||
| column_create Lexicon memo_index COLUMN_INDEX|WITH_POSITION Memos title | ||
| [[0,0.0,0.0],true] | ||
| load --table Memos | ||
| [ | ||
| ["title"], | ||
| ["Groonga"] | ||
| ] | ||
| [[0,0.0,0.0],1] | ||
| select Memos --match_columns Memos --query Groonga | ||
| [[[-22,0.0,0.0],"invalid match target: <Memos>"],[]] | ||
| #|e| invalid match target: <Memos> |
15 changes: 15 additions & 0 deletions
15
test/command/suite/select/match_columns/invalid/table.test
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,15 @@ | ||
| table_create Memos TABLE_NO_KEY | ||
| column_create Memos title COLUMN_SCALAR ShortText | ||
|
|
||
| table_create Lexicon TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram | ||
| column_create Lexicon memo_index COLUMN_INDEX|WITH_POSITION Memos title | ||
|
|
||
| load --table Memos | ||
| [ | ||
| ["title"], | ||
| ["Groonga"] | ||
| ] | ||
|
|
||
| select Memos \ | ||
| --match_columns Memos \ | ||
| --query Groonga |