qdb_stmt_free()

Free a precompiled statement

Synopsis:

#include <qdb/qdb.h>

int qdb_stmt_free( qdb_hdl_t *db,
                   int stmtid )

Arguments:

db
A pointer to the database handle.
stmtid
The ID of a precompiled statement to free.

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() for an example on how to compile, execute, and free an SQL statement.

Classification:

QNX Neutrino

Safety:  
Interrupt handler No
Signal handler No
Thread Yes