qdb_stmt_free()

Free a precompiled statement

Synopsis:

#include <qdb/qdb.h>

int qdb_stmt_free( qdb_hdl_t *hdl,
                   int stmtid )

Arguments:

hdl
A pointer to the database handle.
stmtid
The ID of a pre-compiled statement to free, returned by qdb_stmt_init().

Library:

qdb

Description:

This function frees a statement previously compiled by qdb_stmt_init(). It's not strictly necessary to call this function, as all precompiled statements are freed when you call qdb_disconnect().

Returns:

>0
Success.
-1
An error occurred (errno is set).

Examples:

See qdb_stmt_init().

Classification:

QNX Neutrino

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

qdb_stmt_exec(), qdb_stmt_init()