X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=ztest%2Fztest.c;h=0cf54d14bf8e580dbbe2d3ba348bee6a3eb0a371;hp=7d2f90b9c2a2cdc03c63f69b814071bcbbbcba11;hb=16cec0c7730f9ae5ce52a12a66d139e02cb806c0;hpb=2ce9902d5541bf71521587a073a9c09d36d4c3da;ds=sidebyside diff --git a/ztest/ztest.c b/ztest/ztest.c index 7d2f90b..0cf54d1 100644 --- a/ztest/ztest.c +++ b/ztest/ztest.c @@ -128,9 +128,11 @@ int ztest_search(void *handle, bend_search_rr *rr) rr->errcode = YAZ_BIB1_COMBI_OF_SPECIFIED_DATABASES_UNSUPP; return 0; } - /* Throw Database unavailable if other than Default or Slow */ + /* Allow Default, db.* and Slow */ if (!yaz_matchstr(rr->basenames[0], "Default")) ; /* Default is OK in our test */ + else if (!strncmp(rr->basenames[0], "db", 2)) + ; /* db.* is OK in our test */ else if (check_slow(rr->basenames[0], rr->association)) { rr->estimated_hit_count = 1;