Kouhei Sutou
null+****@clear*****
Mon Sep 10 13:56:47 JST 2018
Kouhei Sutou 2018-09-10 13:56:47 +0900 (Mon, 10 Sep 2018) Revision: 5ee4f3fbfd8ef772d3b48c6b3783365b5a863606 https://github.com/groonga/groonga/commit/5ee4f3fbfd8ef772d3b48c6b3783365b5a863606 Message: Support "bool * numeric" +, - and / are also supported. Modified files: lib/expr_executor.c Modified: lib/expr_executor.c (+14 -0) =================================================================== --- lib/expr_executor.c 2018-09-10 12:16:21 +0900 (ccda1d722) +++ lib/expr_executor.c 2018-09-10 13:56:47 +0900 (488d0e8a2) @@ -333,6 +333,20 @@ grn_expr_executor_init_general(grn_ctx *ctx, text_operation, \ invalid_type_error) do { \ switch (x->header.domain) { \ + case GRN_DB_BOOL : \ + { \ + uint8_t x_; \ + x_ = GRN_BOOL_VALUE(x) ? 1 : 0; \ + left_expression_check(x_); \ + NUMERIC_ARITHMETIC_OPERATION_DISPATCH(GRN_UINT8_SET, \ + GRN_UINT8_VALUE, \ + x_, y, res, \ + integer8_operation, \ + float_operation, \ + right_expression_check, \ + invalid_type_error); \ + } \ + break; \ case GRN_DB_INT8 : \ { \ int8_t x_; \ -------------- next part -------------- HTML����������������������������... URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180910/4c64fd5a/attachment.htm