X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=src%2Finclude%2Ffrontend%2Fconnection.h;h=45d377e10df2ffb9ff28220b9c331f0410e47e0a;hp=06f52435eeb76fe2e0a5a0d1d870e127ba946a9b;hb=bf39a85b7764641b4a4f0c452331c8be8cb34a01;hpb=5fca8c1720eaadfacd58ec094a6af12d6b22558d diff --git a/src/include/frontend/connection.h b/src/include/frontend/connection.h index 06f5243..45d377e 100644 --- a/src/include/frontend/connection.h +++ b/src/include/frontend/connection.h @@ -108,16 +108,17 @@ sdb_connection_ping(sdb_conn_t *conn); /* * sdb_fe_parse: - * Parse the query text specified in 'query' and return a list of parse trees - * (for each command) to be executed by sdb_fe_exec. The list has to be freed - * by the caller. + * Parse the query text specified in 'query' of length 'len' and return a list + * of parse trees (for each command) to be executed by sdb_fe_exec. The list + * has to be freed by the caller. If 'len' is less than zero, parse the whole + * (nul-terminated) string. * * Returns: * - an sdb_llist_t object of sdb_conn_node_t on success * - NULL in case of an error */ sdb_llist_t * -sdb_fe_parse(const char *query); +sdb_fe_parse(const char *query, int len); /* * sdb_fe_exec: