[Groonga-commit] ranguba/rroonga at 40625d6 [master] Use support_key? to detect whether the table has only ID or both ID and key

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Oct 3 10:12:52 JST 2014


Kouhei Sutou	2014-10-03 10:12:52 +0900 (Fri, 03 Oct 2014)

  New Revision: 40625d6e7ee30319d26955b663353083d22062cb
  https://github.com/ranguba/rroonga/commit/40625d6e7ee30319d26955b663353083d22062cb

  Message:
    Use support_key? to detect whether the table has only ID or both ID and key

  Modified files:
    lib/groonga/record.rb

  Modified: lib/groonga/record.rb (+1 -1)
===================================================================
--- lib/groonga/record.rb    2014-10-03 01:08:05 +0900 (626e0c6)
+++ lib/groonga/record.rb    2014-10-03 10:12:52 +0900 (631d4df)
@@ -281,7 +281,7 @@ module Groonga
 
     # Delete the record.
     def delete
-      if****@table*****_a?(Table::KeySupport)
+      if support_key?
         @table.delete(@id, :id => true)
       else
         @table.delete(@id)
-------------- next part --------------
HTML����������������������������...
Download 



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