From: Adam Dickmeiss Date: Fri, 9 Jul 2010 14:31:57 +0000 (+0200) Subject: CCL fixes: bug 2895 and bug 3539 X-Git-Tag: v4.0.11~2 X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;h=3c1365fc355b4ee90cb841e66cdb9c933f871ed9;hp=89d7ade063c6c1ecd3aba012204bb6d9ec5b8792;p=yaz-moved-to-github.git CCL fixes: bug 2895 and bug 3539 --- diff --git a/src/ccltoken.c b/src/ccltoken.c index ed45762..b784295 100644 --- a/src/ccltoken.c +++ b/src/ccltoken.c @@ -198,6 +198,7 @@ struct ccl_token *ccl_token_add(struct ccl_token *at) n->next->prev = n; n->kind = CCL_TOK_TERM; + n->left_trunc = n->right_trunc = 0; n->name = 0; n->len = 0; n->ws_prefix_buf = 0; diff --git a/test/test_ccl.c b/test/test_ccl.c index dada1e0..9ebebad 100644 --- a/test/test_ccl.c +++ b/test/test_ccl.c @@ -241,18 +241,10 @@ void tst1(int pass) "@or @attr 4=2 @attr 1=1016 a " "@attr 1=/my/title a ")); - /* Bug #2895 */ -#if 1 - YAZ_CHECK(tst_ccl_query(bibset, "a? b?", - /* incorrect. */ - "@and @attr 4=2 @attr 1=1016 a? " - "@attr 5=1 @attr 4=2 @attr 1=1016 b ")); -#else YAZ_CHECK(tst_ccl_query(bibset, "a? b?", /* correct */ "@and @attr 5=1 @attr 4=2 @attr 1=1016 a " "@attr 5=1 @attr 4=2 @attr 1=1016 b ")); -#endif ccl_qual_rm(&bibset); }