[Groonga-commit] droonga/droonga-engine at 00e9def [master] groonga: Use "id" for non-array tables

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Apr 24 13:54:54 JST 2014


YUKI Hiroshi	2014-04-24 13:54:54 +0900 (Thu, 24 Apr 2014)

  New Revision: 00e9deffad21e758a6e047268684b46cc64a2deb
  https://github.com/droonga/droonga-engine/commit/00e9deffad21e758a6e047268684b46cc64a2deb

  Message:
    groonga: Use "id" for non-array tables

  Modified files:
    lib/droonga/plugins/groonga/delete.rb

  Modified: lib/droonga/plugins/groonga/delete.rb (+1 -2)
===================================================================
--- lib/droonga/plugins/groonga/delete.rb    2014-04-24 13:46:35 +0900 (f1251d4)
+++ lib/droonga/plugins/groonga/delete.rb    2014-04-24 13:54:54 +0900 (ffefae1)
@@ -77,8 +77,7 @@ module Droonga
 
           def delete_record(table_name, parameters={})
             table = @context[table_name]
-            case table
-            when ::Groonga::Array
+            if parameters[:id]
               table.delete(parameters[:id].to_i)
             else
               table.delete(parameters[:key])
-------------- next part --------------
HTML����������������������������...
Download 



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