From 99deca38579f9e6c01550312e8004477a26921a8 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 11 Jan 2005 10:44:07 +0000 Subject: [PATCH] Check for database in ztest_scan --- ztest/ztest.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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; -- 1.7.10.4