Kouhei Sutou
null+****@clear*****
Fri Nov 22 16:12:40 JST 2013
Kouhei Sutou 2013-11-22 16:12:40 +0900 (Fri, 22 Nov 2013) New Revision: db36c15c795c42322e6d72465eb7a689805d22b1 https://github.com/droonga/fluent-plugin-droonga/commit/db36c15c795c42322e6d72465eb7a689805d22b1 Message: groonga select: support omitting "output_columns" parameter Added files: test/command/suite/groonga/select/minimum.expected test/command/suite/groonga/select/minimum.test Modified files: lib/droonga/plugin/adapter/groonga/select.rb Modified: lib/droonga/plugin/adapter/groonga/select.rb (+1 -1) =================================================================== --- lib/droonga/plugin/adapter/groonga/select.rb 2013-11-22 16:05:54 +0900 (ff53b74) +++ lib/droonga/plugin/adapter/groonga/select.rb 2013-11-22 16:12:40 +0900 (d79c0ec) @@ -22,7 +22,7 @@ module Droonga match_columns = select_request["match_columns"] match_to = match_columns ? match_columns.split(/ *\|\| */) : [] query = select_request["query"] - output_columns = select_request["output_columns"] + output_columns = select_request["output_columns"] || "" attributes = output_columns.split(/, */) offset = (select_request["offset"] || "0").to_i limit = (select_request["limit"] || "10").to_i Added: test/command/suite/groonga/select/minimum.expected (+26 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/groonga/select/minimum.expected 2013-11-22 16:12:40 +0900 (0139f79) @@ -0,0 +1,26 @@ +[ + "droonga.message", + 0, + { + "inReplyTo": null, + "statusCode": 200, + "type": "select.result", + "body": [ + [ + 0, + 1385104295.6934159, + 0 + ], + [ + [ + [ + 0 + ], + [ + + ] + ] + ] + ] + } +] Added: test/command/suite/groonga/select/minimum.test (+7 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/groonga/select/minimum.test 2013-11-22 16:12:40 +0900 (f059e70) @@ -0,0 +1,7 @@ +{ + "type" : "select", + "dataset" : "Droonga", + "body" : { + "table" : "User" + } +} -------------- next part -------------- HTML����������������������������...Download