X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=doc%2Ftools.xml;h=3809efa1cbdc2dc554e465f148e5381ef816593e;hp=56fe958ff30604d8c0f034e1028ea49a82ac4b59;hb=087aa6548dbee815eed2e6bad4c5b105c35391cb;hpb=cf06b3dea55efd44a2568ac52a089a4c935743bb 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.