[Groonga-commit] ranguba/rroonga at 7773498 [master] Fix a bug that Groonga::Array#delete fails

Back to archive index

Masafumi Yokoyama null+****@clear*****
Fri Oct 3 00:30:56 JST 2014


Masafumi Yokoyama	2014-10-03 00:30:56 +0900 (Fri, 03 Oct 2014)

  New Revision: 7773498759e615bbf986da1401c99ee3a5c34aae
  https://github.com/ranguba/rroonga/commit/7773498759e615bbf986da1401c99ee3a5c34aae

  Message:
    Fix a bug that Groonga::Array#delete fails
    
    Caused by commit 9b23b1ef21195847fe0e687cb660552f4027f87d

  Modified files:
    lib/groonga/record.rb

  Modified: lib/groonga/record.rb (+4 -0)
===================================================================
--- lib/groonga/record.rb    2014-10-03 00:00:16 +0900 (ae8b71d)
+++ lib/groonga/record.rb    2014-10-03 00:30:56 +0900 (fd4280f)
@@ -281,7 +281,11 @@ module Groonga
 
     # Delete the record.
     def delete
+      if****@table*****_a?(Groonga::Table::KeySupport)
       @table.delete(@id, :id => true)
+      else
+        @table.delete(@id)
+      end
     end
 
     # Renames key of the record. Only available for
-------------- next part --------------
HTML����������������������������...
Download 



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