X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Fsrwtst.c;h=e62e888a649c4f4cb778f5ab810b3b53ffcb4a51;hb=6cf32fafe48e17e937809e54edf5abc7451d557b;hp=f12c2d715f6c2a478548dae74abb44959d97e1dd;hpb=5242cb5a8634bfa38b9333ff7f903e718ac6e292;p=yaz-moved-to-github.git diff --git a/util/srwtst.c b/util/srwtst.c index f12c2d7..e62e888 100644 --- a/util/srwtst.c +++ b/util/srwtst.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2012 Index Data + * Copyright (C) 1995-2013 Index Data * See the file LICENSE for details. */ #if HAVE_CONFIG_H @@ -53,18 +53,7 @@ int main(int argc, char **argv) if (sr->which == Z_SRW_searchRetrieve_request) { Z_SRW_searchRetrieveRequest *req = sr->u.request; - switch(req->query_type) - { - case Z_SRW_query_type_cql: - fprintf(stderr, "CQL: %s\n", req->query.cql); - break; - case Z_SRW_query_type_xcql: - fprintf(stderr, "XCQL\n"); - break; - case Z_SRW_query_type_pqf: - fprintf(stderr, "PQF: %s\n", req->query.pqf); - break; - } + fprintf(stderr, "%s: %s\n", req->queryType, req->query); } else if (sr->which == Z_SRW_searchRetrieve_response) {