X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=ztest%2Fztest.c;h=d10e4b50101151cac331b072c442344ffd07f2d9;hb=1e05ad915933124916c16e164cd2065646379cd7;hp=fa749d6cd3d08c6d73c04eb45b0f5f3ab8edaadc;hpb=9a0db72d69faf9b014a9cb05c9c95c7d8ba214b9;p=yaz-moved-to-github.git diff --git a/ztest/ztest.c b/ztest/ztest.c index fa749d6..d10e4b5 100644 --- a/ztest/ztest.c +++ b/ztest/ztest.c @@ -1,12 +1,15 @@ /* - * Copyright (c) 1995-2000, Index Data. + * Copyright (c) 1995-2001, Index Data. * See the file LICENSE for details. * * NT Service interface by * Chas Woodfield, Fretwell Downing Datasystems. * * $Log: ztest.c,v $ - * Revision 1.35 2000-11-23 10:58:33 adam + * Revision 1.36 2001-01-30 21:34:18 adam + * Added step-size for Scan backend interface. + * + * Revision 1.35 2000/11/23 10:58:33 adam * SSL comstack support. Separate POSIX thread support library. * * Revision 1.34 2000/09/04 08:58:15 adam @@ -550,6 +553,11 @@ int ztest_scan(void *handle, bend_scan_rr *q) q->errcode = 229; /* unsupported term type */ return 0; } + if (*q->step_size != 0) + { + q->errcode = 205; /*Only zero step size supported for Scan */ + return 0; + } if (q->term->term->u.general->len >= 80) { q->errcode = 11; /* term too long */