l > 1,
/* auto_group */0);
if (!p2)
+ {
+ ccl_rpn_delete(p_top);
return 0;
+ }
if (parent)
{
struct ccl_rpn_node *tmp = ccl_rpn_node_create(CCL_RPN_AND);
p1 = split_recur(cclp, qa, p2, ar + l, sz - l);
else
p1 = p2;
+ if (!p1)
+ {
+ ccl_rpn_delete(p2);
+ ccl_rpn_delete(p_top);
+ return 0;
+ }
p_top = ccl_rpn_node_mkbool(p_top, p1, CCL_RPN_OR);
}
assert(p_top);
"@or @attr 1=2 b @attr 1=3 b "
"@or @attr 1=2 \"a b\" @attr 1=3 \"a b\" "));
+ YAZ_CHECK(tst_ccl_query(bibset, "s2=a? b", 0));
+ YAZ_CHECK(tst_ccl_query(bibset, "s2=a b?", 0));
+ YAZ_CHECK(tst_ccl_query(bibset, "s2=a b? c", 0));
ccl_qual_rm(&bibset);
}