Skip to content

Commit

Permalink
fix for 'IN' and 'NOT IN' expression filter
Browse files Browse the repository at this point in the history
  • Loading branch information
msalvadores committed Nov 2, 2011
1 parent 875c1e9 commit 9f3c4db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontend/results.c
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ fs_value fs_expression_eval(fs_query *q, int row, int block, rasqal_expression *
case RASQAL_EXPR_IN: {
fs_value comp = fs_expression_eval(q, row, block, e->arg1);
for (int i=0; i < raptor_sequence_size(e->args); i++) {
fs_value v = fs_expression_eval(q, q->group_rows[row], block, raptor_sequence_get_at(e->args, i));
fs_value v = fs_expression_eval(q, row, block, raptor_sequence_get_at(e->args, i));
if (fs_value_equal(comp, v)) {
return fs_value_boolean(e->op == RASQAL_EXPR_IN ? 1 : 0);
}
Expand Down

0 comments on commit 9f3c4db

Please sign in to comment.