KSQL_STMT_FREE(3) Library Functions Manual KSQL_STMT_FREE(3)

NAME

ksql_stmt_freefree a statement on a database connection

LIBRARY

library “ksql”

SYNOPSIS

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

DESCRIPTION

The ksql_stmt_free function frees a statement allocated with ksql_stmt_alloc(3), invoking sqlite3_finalize(3) on the underlying statement. This does nothing if stmt is NULL.

RETURN VALUES

Returns KSQL_OK on success or another error on failure. Note: this does not return the code of sqlite3_finalize(3), which itself returns the code of the last step and not the failure of the resource de-allocation.

SEE ALSO

sqlite3_finalize(3)
April 3, 2018 OpenBSD 6.2