projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
d62fb74
)
Check for database in ztest_scan
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 11 Jan 2005 10:44:07 +0000
(10:44 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 11 Jan 2005 10:44:07 +0000
(10:44 +0000)
ztest/ztest.c
patch
|
blob
|
history
diff --git
a/ztest/ztest.c
b/ztest/ztest.c
index
c7f7fdb
..
e750212
100644
(file)
--- a/
ztest/ztest.c
+++ b/
ztest/ztest.c
@@
-2,7
+2,7
@@
* Copyright (c) 1995-2004, Index Data.
* See the file LICENSE for details.
*
* 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;
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;
q->errcode = 0;
q->errstring = 0;
q->entries = list;