Kouhei Sutou
null+****@clear*****
Tue Sep 11 14:21:26 JST 2018
Kouhei Sutou 2018-09-11 14:21:26 +0900 (Tue, 11 Sep 2018) Revision: c10788c1bf90a3ae4526d73822759ff12755e403 https://github.com/groonga/groonga/commit/c10788c1bf90a3ae4526d73822759ff12755e403 Message: Support "numeric * bool" +, - and / are also supported. Modified files: lib/expr_executor.c Modified: lib/expr_executor.c (+8 -0) =================================================================== --- lib/expr_executor.c 2018-09-11 14:16:59 +0900 (488d0e8a2) +++ lib/expr_executor.c 2018-09-11 14:21:26 +0900 (94ada8ac9) @@ -222,6 +222,14 @@ grn_expr_executor_init_general(grn_ctx *ctx, right_expression_check, \ invalid_type_error) do { \ switch (y->header.domain) { \ + case GRN_DB_BOOL : \ + { \ + uint8_t y_; \ + y_ = GRN_BOOL_VALUE(y) ? 1 : 0; \ + right_expression_check(y_); \ + set(ctx, res, integer_operation(x_, y_)); \ + } \ + break; \ case GRN_DB_INT8 : \ { \ int8_t y_; \ -------------- next part -------------- HTML����������������������������... URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180911/857d0922/attachment.htm