[Groonga-commit] groonga/groonga at d0184ff [master] mrb: fix a bug that the end of code position is invalid

Zurück zum Archiv-Index

Kouhei Sutou null+****@clear*****
Mon Sep 29 23:03:12 JST 2014


Kouhei Sutou	2014-09-29 23:03:12 +0900 (Mon, 29 Sep 2014)

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

  Message:
    mrb: fix a bug that the end of code position is invalid
    
    The problem returns wrong result for range search without index.

  Modified files:
    lib/mrb/scripts/scan_info_builder.rb

  Modified: lib/mrb/scripts/scan_info_builder.rb (+1 -1)
===================================================================
--- lib/mrb/scripts/scan_info_builder.rb    2014-09-29 22:55:48 +0900 (c2e986a)
+++ lib/mrb/scripts/scan_info_builder.rb    2014-09-29 23:03:12 +0900 (7098d85)
@@ -293,7 +293,7 @@ module Groonga
 
     def create_between_data(data, next_data)
       between_data = ScanInfoData.new(data.start)
-      between_data.end = next_data.end
+      between_data.end = next_data.end + 1
       between_data.flags = data.flags
       between_data.op = Operator::CALL
       between_data.logical_op = data.logical_op
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index