[Groonga-commit] droonga/fluent-plugin-droonga at 3b150f0 [master] Support {} style load with _key

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Feb 6 15:37:32 JST 2014


Kouhei Sutou	2014-02-06 15:37:32 +0900 (Thu, 06 Feb 2014)

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

  Message:
    Support {} style load with _key

  Modified files:
    lib/groonga_command_converter.rb

  Modified: lib/groonga_command_converter.rb (+2 -0)
===================================================================
--- lib/groonga_command_converter.rb    2014-02-06 13:40:51 +0900 (dde5b9e)
+++ lib/groonga_command_converter.rb    2014-02-06 15:37:32 +0900 (e8df19a)
@@ -119,6 +119,8 @@ module Droonga
         }
 
         if record.is_a?(Hash)
+          record = record.dup
+          body[:key] = record.delete("_key")
           record_values = record
         else
           record.each_with_index do |value, column_index|
-------------- next part --------------
HTML����������������������������...
Download 



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