From: Adam Dickmeiss Date: Tue, 11 Jan 2005 10:44:07 +0000 (+0000) Subject: Check for database in ztest_scan X-Git-Tag: YAZ.2.0.32~5 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=99deca38579f9e6c01550312e8004477a26921a8;p=yaz-moved-to-github.git Check for database in ztest_scan --- diff --git a/ztest/ztest.c b/ztest/ztest.c index c7f7fdb..e750212 100644 --- a/ztest/ztest.c +++ b/ztest/ztest.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2004, Index Data. * See the file LICENSE for details. * - * $Id: ztest.c,v 1.68 2004-12-30 00:18:04 adam Exp $ + * $Id: ztest.c,v 1.69 2005-01-11 10:44:07 adam Exp $ */ /* @@ -536,6 +536,13 @@ int ztest_scan(void *handle, bend_scan_rr *q) int term_position_req = q->term_position; int num_entries_req = q->num_entries; + if (yaz_matchstr (q->basenames[0], "Default")) + { + q->errcode = 109; + q->errstring = q->basenames[0]; + return 0; + } + q->errcode = 0; q->errstring = 0; q->entries = list;