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 (parent:
7369655
)
Reports Database unavailable unless "Default" is specified.
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 17 Jan 2002 21:04:24 +0000
(21:04 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 17 Jan 2002 21:04:24 +0000
(21:04 +0000)
ztest/ztest.c
patch
|
blob
|
history
diff --git
a/ztest/ztest.c
b/ztest/ztest.c
index
ee3d2e0
..
45ae5b3
100644
(file)
--- a/
ztest/ztest.c
+++ b/
ztest/ztest.c
@@
-1,8
+1,8
@@
/*
/*
- * Copyright (c) 1995-2001, Index Data.
+ * Copyright (c) 1995-2002, Index Data.
* See the file LICENSE for details.
*
* See the file LICENSE for details.
*
- * $Id: ztest.c,v 1.46 2001-11-13 23:00:43 adam Exp $
+ * $Id: ztest.c,v 1.47 2002-01-17 21:04:24 adam Exp $
*/
/*
*/
/*
@@
-30,6
+30,17
@@
int ztest_delete (void *handle, bend_delete_rr *rr);
int ztest_search (void *handle, bend_search_rr *rr)
{
int ztest_search (void *handle, bend_search_rr *rr)
{
+ if (rr->num_bases != 1)
+ {
+ rr->errcode = 23;
+ return 0;
+ }
+ if (strcmp (rr->basenames[0], "Default"))
+ {
+ rr->errcode = 109;
+ rr->errstring = rr->basenames[0];
+ return 0;
+ }
rr->hits = rand() % 22;
return 0;
}
rr->hits = rand() % 22;
return 0;
}