KSQL_STMT_RESET(3) Library Functions Manual KSQL_STMT_RESET(3)

resets a statement on a database connection

library “ksql”

#include <sys/types.h>
#include <stdint.h>
#include <ksql.h>
enum ksqlc
ksql_stmt_reset(struct ksqlstmt *stmt);

The ksql_stmt_reset function resets a statement allocated with ksql_stmt_alloc(3). Note: as documented in sqlite3_reset(3), this does not unbind statements made with ksql_bind_double(3) and friends.

This function returns KSQL_OK on success or another error on failure. Currently, it can only fail due to communication failures in split-process mode.
The return value of the underlying sqlite3_reset(3) is ignored because resource deallocation cannot fail, and because sqlite3_reset(3) instead returns the return value of the most recent step of the execution of the statement. Even if the last step of the execution failed, ksql_stmt_reset() will usually succeed.

April 5, 2018 OpenBSD 6.4