Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
select: ignore wrong column name that starts with number in output_co…
…lumns The behavior change was unexpected. So we should revert the behavior change.
- Loading branch information
Showing
3 changed files
with
74 additions
and
1 deletion.
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
50 changes: 50 additions & 0 deletions
50
test/command/suite/select/output_columns/nonexistent/invalid_identifier.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,50 @@ | ||
table_create Sites TABLE_HASH_KEY ShortText | ||
[[0,0.0,0.0],true] | ||
column_create Sites uri COLUMN_SCALAR ShortText | ||
[[0,0.0,0.0],true] | ||
load --table Sites | ||
[ | ||
["_key","uri"], | ||
["groonga","http://groonga.org/"], | ||
["razil","http://razil.jp/"] | ||
] | ||
[[0,0.0,0.0],2] | ||
select Sites --output_columns '_id, _key, 0nonexistent, uri' | ||
[ | ||
[ | ||
0, | ||
0.0, | ||
0.0 | ||
], | ||
[ | ||
[ | ||
[ | ||
2 | ||
], | ||
[ | ||
[ | ||
"_id", | ||
"UInt32" | ||
], | ||
[ | ||
"_key", | ||
"ShortText" | ||
], | ||
[ | ||
"uri", | ||
"ShortText" | ||
] | ||
], | ||
[ | ||
1, | ||
"groonga", | ||
"http://groonga.org/" | ||
], | ||
[ | ||
2, | ||
"razil", | ||
"http://razil.jp/" | ||
] | ||
] | ||
] | ||
] |
11 changes: 11 additions & 0 deletions
11
test/command/suite/select/output_columns/nonexistent/invalid_identifier.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,11 @@ | ||
table_create Sites TABLE_HASH_KEY ShortText | ||
column_create Sites uri COLUMN_SCALAR ShortText | ||
|
||
load --table Sites | ||
[ | ||
["_key","uri"], | ||
["groonga","http://groonga.org/"], | ||
["razil","http://razil.jp/"] | ||
] | ||
|
||
select Sites --output_columns '_id, _key, 0nonexistent, uri' |