[Groonga-commit] groonga/groonga at f25f356 [master] mrb: fix a bug that AND operator is missing

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Apr 7 15:22:38 JST 2016


Kouhei Sutou	2016-04-07 15:22:38 +0900 (Thu, 07 Apr 2016)

  New Revision: f25f3568a6e28a93e8911008c5aede763c36df7d
  https://github.com/groonga/groonga/commit/f25f3568a6e28a93e8911008c5aede763c36df7d

  Message:
    mrb: fix a bug that AND operator is missing

  Modified files:
    lib/mrb/scripts/expression_tree/logical_operation.rb

  Modified: lib/mrb/scripts/expression_tree/logical_operation.rb (+1 -1)
===================================================================
--- lib/mrb/scripts/expression_tree/logical_operation.rb    2016-04-07 12:46:03 +0900 (ef95ccb)
+++ lib/mrb/scripts/expression_tree/logical_operation.rb    2016-04-07 15:22:38 +0900 (26ee7e2)
@@ -11,7 +11,7 @@ module Groonga
       def build(expression)
         @nodes.each_with_index do |node, i|
           node.build(expression)
-          expression.append_operator(@operator, 2) if i > 1
+          expression.append_operator(@operator, 2) if i > 0
         end
       end
     end
-------------- next part --------------
HTML����������������������������...
Download 



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