-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
45 additions
and
4 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
14 changes: 14 additions & 0 deletions
14
test/command/suite/select/query_flags/query_no_syntax_error/and_only.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,14 @@ | ||
table_create Names TABLE_PAT_KEY ShortText | ||
[[0,0.0,0.0],true] | ||
table_create Tokens TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram --normalizer NormalizerAuto | ||
[[0,0.0,0.0],true] | ||
column_create Tokens names_key COLUMN_INDEX|WITH_POSITION Names _key | ||
[[0,0.0,0.0],true] | ||
load --table Names | ||
[ | ||
{"_key": "name (x+y)"}, | ||
{"_key": "name (x y)"} | ||
] | ||
[[0,0.0,0.0],2] | ||
select Names --match_columns "_key" --query "+" --query_flags ALLOW_PRAGMA|ALLOW_COLUMN|QUERY_NO_SYNTAX_ERROR | ||
[[0,0.0,0.0],[[[1],[["_id","UInt32"],["_key","ShortText"]],[1,"name (x+y)"]]]] |
17 changes: 17 additions & 0 deletions
17
test/command/suite/select/query_flags/query_no_syntax_error/and_only.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,17 @@ | ||
table_create Names TABLE_PAT_KEY ShortText | ||
|
||
table_create Tokens TABLE_PAT_KEY ShortText \ | ||
--default_tokenizer TokenBigram \ | ||
--normalizer NormalizerAuto | ||
column_create Tokens names_key COLUMN_INDEX|WITH_POSITION Names _key | ||
|
||
load --table Names | ||
[ | ||
{"_key": "name (x+y)"}, | ||
{"_key": "name (x y)"} | ||
] | ||
|
||
select Names \ | ||
--match_columns "_key" \ | ||
--query "+" \ | ||
--query_flags ALLOW_PRAGMA|ALLOW_COLUMN|QUERY_NO_SYNTAX_ERROR |