Kouhei Sutou
null+****@clear*****
Fri Mar 24 14:21:21 JST 2017
Kouhei Sutou 2017-03-24 14:21:21 +0900 (Fri, 24 Mar 2017) New Revision: 05b501fa4867d0b5b9ffb796346cce8912089596 https://github.com/groonga/groonga/commit/05b501fa4867d0b5b9ffb796346cce8912089596 Message: Fix scalar column detection Modified files: lib/expr_executor.c Modified: lib/expr_executor.c (+1 -5) =================================================================== --- lib/expr_executor.c 2017-03-24 13:46:37 +0900 (c7de70b) +++ lib/expr_executor.c 2017-03-24 14:21:21 +0900 (b2ddb53) @@ -442,11 +442,7 @@ grn_expr_executor_is_simple_condition(grn_ctx *ctx, grn_obj *expr) if (target->nargs != 1) { return GRN_FALSE; } - if (!target->value) { - return GRN_FALSE; - } - if ((target->value->header.flags & GRN_OBJ_COLUMN_TYPE_MASK) != - GRN_OBJ_COLUMN_SCALAR) { + if (!grn_obj_is_scalar_column(ctx, target->value)) { return GRN_FALSE; } -------------- next part -------------- HTML����������������������������...Download