[Groonga-commit] droonga/droonga-engine at 1d5ed66 [master] groonga: Increment counter correctly

Back to archive index

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


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

  New Revision: 1d5ed66219caf7826851184869d4b5315b7d3300
  https://github.com/droonga/droonga-engine/commit/1d5ed66219caf7826851184869d4b5315b7d3300

  Message:
    groonga: Increment counter correctly

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

  Modified: lib/droonga/plugins/groonga/delete.rb (+2 -2)
===================================================================
--- lib/droonga/plugins/groonga/delete.rb    2014-04-24 13:22:50 +0900 (b2fb899)
+++ lib/droonga/plugins/groonga/delete.rb    2014-04-24 13:23:57 +0900 (f1251d4)
@@ -57,8 +57,8 @@ module Droonga
 
             count = 0
             count += 1 if key
-            id += 1 if id
-            filter += 1 if filter
+            count += 1 if id
+            count += 1 if filter
             if count > 1
               message = "\"key\", \"id\", and \"filter\" are exclusive"
               raise CommandError.new(:status => Status::INVALID_ARGUMENT,
-------------- next part --------------
HTML����������������������������...
Download 



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