Navigation Menu

Skip to content

Commit

Permalink
Use grn_proc_get_info() to get called expression
Browse files Browse the repository at this point in the history
We don't need to use grn->impl->curr_expr internal variable. Yay!
  • Loading branch information
kou committed Jun 21, 2013
1 parent 6e89263 commit 6f3e781
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lib/proc.c
Expand Up @@ -3788,14 +3788,7 @@ func_query(grn_ctx *ctx, int nargs, grn_obj **args, grn_user_data *user_data)
}
GRN_BOOL_SET(ctx, found, GRN_FALSE);

condition_ptr = grn_expr_get_var(ctx, command,
GRN_SELECT_INTERNAL_VAR_CONDITION,
strlen(GRN_SELECT_INTERNAL_VAR_CONDITION));
if (!condition_ptr) {
goto exit;
}

condition = GRN_PTR_VALUE(condition_ptr);
grn_proc_get_info(ctx, user_data, NULL, NULL, &condition);
if (!condition) {
goto exit;
}
Expand Down

0 comments on commit 6f3e781

Please sign in to comment.