[Groonga-commit] groonga/groonga at 2811959 [master] mrb: fix wrong expr_code use

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 10 22:08:33 JST 2013


Kouhei Sutou	2013-10-10 22:08:33 +0900 (Thu, 10 Oct 2013)

  New Revision: 2811959ba9fac86786584c30452bde8c8e2a1501
  https://github.com/groonga/groonga/commit/2811959ba9fac86786584c30452bde8c8e2a1501

  Message:
    mrb: fix wrong expr_code use
    
    I found the bug by running existing test:
    
        % test/command/run-test.sh test/command/suite/select/match_columns/section/by_index.test
    
    ec may be moved in the above if clause.

  Modified files:
    lib/mrb/mrb_expr.c

  Modified: lib/mrb/mrb_expr.c (+1 -0)
===================================================================
--- lib/mrb/mrb_expr.c    2013-10-10 22:02:48 +0900 (9c274b5)
+++ lib/mrb/mrb_expr.c    2013-10-10 22:08:33 +0900 (c8a1857)
@@ -220,6 +220,7 @@ scan_info_build(grn_ctx *ctx, grn_obj *expr, int *n,
                     j -= 2;
                     ec += 2;
                   }
+                  mrb_ec = mrb_grn_expr_code_new(mrb, ec);
                   weight = mrb_fixnum(mrb_funcall(mrb, mrb_ec, "weight", 0));
                   mrb_si = mrb_grn_scan_info_new(mrb, si);
                   mrb_funcall(mrb, mrb_si, "put_index", 3,
-------------- next part --------------
HTML����������������������������...
Download 



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