CCL: fix use of "term" field in sub queries
[yaz-moved-to-github.git] / test / test_ccl.c
index 40e08c2..42ec35e 100644 (file)
@@ -264,6 +264,8 @@ void tst1(int pass)
 
     YAZ_CHECK(tst_ccl_query(bibset, "date=1980",
                             "@attr 2=3 1980 "));
+    YAZ_CHECK(tst_ccl_query(bibset, "(date=1980)",
+                            "@attr 2=3 1980 "));
     YAZ_CHECK(tst_ccl_query(bibset, "date=234-1990",
                             "@and @attr 2=4 234 @attr 2=2 1990 "));
     YAZ_CHECK(tst_ccl_query(bibset, "date=234- 1990",