From: Mike Taylor Date: Tue, 27 May 2003 09:52:38 +0000 (+0000) Subject: Describe cql_strerror() X-Git-Tag: YAZ.2.0.3~30 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=087aa6548dbee815eed2e6bad4c5b105c35391cb Describe cql_strerror() --- diff --git a/doc/tools.xml b/doc/tools.xml index 56fe958..3809efa 100644 --- a/doc/tools.xml +++ b/doc/tools.xml @@ -1,4 +1,4 @@ - + Supporting Tools @@ -718,7 +718,7 @@ int cql_parser_string(CQL_parser cp, const char *str); A CQL query is parsed by the cql_parser_string which takes a query str. If the query was valid (no syntax errors), then zero is returned; - otherwise a non-zero error code is returned. + otherwise -1 is returned to indicate a syntax error. @@ -742,7 +742,7 @@ int cql_parser_stdio(CQL_parser cp, FILE *f); CQL tree - The the query string is validl, the CQL parser + The the query string is valid, the CQL parser generates a tree representing the structure of the CQL query. @@ -938,6 +938,13 @@ int cql_transform_error(cql_transform_t ct, char **addinfop); index set that was not recognised. + The SRW error-codes may be translated into brief human-readable + error messages using + +const char *cql_strerror(int code); + + + If you wish to be able to produce a PQF result in a different way, there are two alternatives.