Special case, since @ precedes PQF operators.
break;
if (len > 0 && i == len)
{
+ if (term[0] == '@')
+ wrbuf_putc(b, '\\');
for (i = 0; i<len; i++)
{
if (term[i] == '\\')
--- /dev/null
+Parsing CQL @and
+@attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "@and"
"@and @attr 5=1 @attr 4=2 @attr 1=1016 a "
"@attr 4=2 @attr 1=1016 b? "));
+ YAZ_CHECK(tst_ccl_query(bibset, "@and",
+ "@attr 4=2 @attr 1=1016 \\@and "));
+
+ YAZ_CHECK(tst_ccl_query(bibset, "a@and",
+ "@attr 4=2 @attr 1=1016 a@and "));
+
+
ccl_qual_rm(&bibset);
}