Kouhei Sutou
null+****@clear*****
Sun Jun 26 22:42:06 JST 2016
Kouhei Sutou 2016-06-26 22:42:06 +0900 (Sun, 26 Jun 2016) New Revision: 1072a21b59f3731d7a37a485b782daaedf40b6d0 https://github.com/groonga/groonga/commit/1072a21b59f3731d7a37a485b782daaedf40b6d0 Message: select test: add a no condition case Added files: test/command/suite/select/columns/stage/output/no_condition.expected test/command/suite/select/columns/stage/output/no_condition.test Added: test/command/suite/select/columns/stage/output/no_condition.expected (+46 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/select/columns/stage/output/no_condition.expected 2016-06-26 22:42:06 +0900 (0c2a1c0) @@ -0,0 +1,46 @@ +plugin_register functions/string +[[0,0.0,0.0],true] +table_create Memos TABLE_NO_KEY +[[0,0.0,0.0],true] +column_create Memos content COLUMN_SCALAR Text +[[0,0.0,0.0],true] +load --table Memos +[ +{"content": "Groonga is fast."}, +{"content": "Mroonga is fast and easy to use."}, +{"content": "PGroonga is fast and easy to use."} +] +[[0,0.0,0.0],3] +select Memos --limit 2 --columns[content_length].stage output --columns[content_length].type UInt32 --columns[content_length].flags COLUMN_SCALAR --columns[content_length].value 'string_length(content)' --output_columns _id,content_length +[ + [ + 0, + 0.0, + 0.0 + ], + [ + [ + [ + 3 + ], + [ + [ + "_id", + "UInt32" + ], + [ + "content_length", + "UInt32" + ] + ], + [ + 1, + 16 + ], + [ + 2, + 32 + ] + ] + ] +] Added: test/command/suite/select/columns/stage/output/no_condition.test (+19 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/select/columns/stage/output/no_condition.test 2016-06-26 22:42:06 +0900 (1b545ae) @@ -0,0 +1,19 @@ +plugin_register functions/string + +table_create Memos TABLE_NO_KEY +column_create Memos content COLUMN_SCALAR Text + +load --table Memos +[ +{"content": "Groonga is fast."}, +{"content": "Mroonga is fast and easy to use."}, +{"content": "PGroonga is fast and easy to use."} +] + +select Memos \ + --limit 2 \ + --columns[content_length].stage output \ + --columns[content_length].type UInt32 \ + --columns[content_length].flags COLUMN_SCALAR \ + --columns[content_length].value 'string_length(content)' \ + --output_columns _id,content_length -------------- next part -------------- HTML����������������������������...下載