[Groonga-commit] droonga/fluent-plugin-droonga at cfcaf7a [master] add: make "values" optional

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Dec 26 18:46:04 JST 2013


Kouhei Sutou	2013-12-26 18:46:04 +0900 (Thu, 26 Dec 2013)

  New Revision: cfcaf7a686d5519abc966c65201293dc6511a66b
  https://github.com/droonga/fluent-plugin-droonga/commit/cfcaf7a686d5519abc966c65201293dc6511a66b

  Message:
    add: make "values" optional

  Modified files:
    lib/droonga/plugin/handler/add.rb

  Modified: lib/droonga/plugin/handler/add.rb (+1 -1)
===================================================================
--- lib/droonga/plugin/handler/add.rb    2013-12-26 18:43:49 +0900 (d48bd16)
+++ lib/droonga/plugin/handler/add.rb    2013-12-26 18:46:04 +0900 (ad909f4)
@@ -87,7 +87,7 @@ module Droonga
       else
         record = table.add
       end
-      request["values"].each do |column, value|
+      (request["values"] || []).each do |column, value|
         begin
           record[column] = value
         rescue Groonga::InvalidArgument => error
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index