Susumu Yata
null+****@clear*****
Tue Sep 13 17:02:13 JST 2016
Susumu Yata 2016-09-13 17:02:13 +0900 (Tue, 13 Sep 2016) New Revision: d05ec137ececb1a0378c33c7d3bf1f7e2b3efe95 https://github.com/groonga/groonga/commit/d05ec137ececb1a0378c33c7d3bf1f7e2b3efe95 Message: select: avoid a side effect that disables indexes GitHub: #601 Modified files: lib/expr.c Modified: lib/expr.c (+3 -1) =================================================================== --- lib/expr.c 2016-09-13 16:08:00 +0900 (97c59c4) +++ lib/expr.c 2016-09-13 17:02:13 +0900 (fd5d389) @@ -6456,7 +6456,9 @@ grn_table_select_index(grn_ctx *ctx, grn_obj *table, scan_info *si, { grn_bool processed = GRN_FALSE; if (!si->query) { - return processed; + if (si->op != GRN_OP_CALL || !grn_obj_is_selector_proc(ctx, si->args[0])) { + return processed; + } } if (GRN_BULK_VSIZE(&si->index)) { grn_obj *index = GRN_PTR_VALUE(&si->index); -------------- next part -------------- HTML����������������������������...Download