X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=ztest%2Fztest.c;h=4795ee65852f04f7d6671ca4de47e62f56ffc28d;hb=582597c00fa0cab08133741f281b816719445198;hp=2574a8c763ff4a9e3409c8dbab9dad94ebececb9;hpb=4b3d1e197d75fcb2607be8d86d244f20c4180000;p=yaz-moved-to-github.git diff --git a/ztest/ztest.c b/ztest/ztest.c index 2574a8c..4795ee6 100644 --- a/ztest/ztest.c +++ b/ztest/ztest.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2003, Index Data. * See the file LICENSE for details. * - * $Id: ztest.c,v 1.58 2003-09-02 12:12:13 adam Exp $ + * $Id: ztest.c,v 1.59 2003-12-29 14:54:33 adam Exp $ */ /* @@ -602,12 +602,15 @@ int ztest_scan(void *handle, bend_scan_rr *q) static int ztest_explain(void *handle, bend_explain_rr *rr) { - rr->explain_buf = "\n" - "\t\n" - "\t\tlocalhost\n" - "\t\t210\n" - "\t\n" - "\n"; + if (rr->database && !strcmp(rr->database, "Default")) + { + rr->explain_buf = "\n" + "\t\n" + "\t\tlocalhost\n" + "\t\t210\n" + "\t\n" + "\n"; + } return 0; }