KSQL_STMT_FREE(3)

NAME
ksql_stmt_free - free a statement on a database connection

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)