qdb_stmt_free()

Free a prepared 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 prepared statement to free.

Library:

qdb

Description:

This function frees a statement previously prepared (compiled) by qdb_stmt_init(). It's not strictly necessary to call this function because all prepared 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