Navigation Menu

Skip to content

Commit

Permalink
Support "bool * numeric"
Browse files Browse the repository at this point in the history
+, - and / are also supported.
  • Loading branch information
kou committed Sep 10, 2018
1 parent 1f7a284 commit 5ee4f3f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/expr_executor.c
Expand Up @@ -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_; \
Expand Down

0 comments on commit 5ee4f3f

Please sign in to comment.