Mario Figueiredo <[EMAIL PROTECTED]> wrote:
I'm a tad bit confused with sqlite3_finalize() usage when the query
fails. As it is, I'm assuming it releases resources and I use it in
this context:
--------------------------------
rc = sqlite3_prepare_v2(/* ... */);
if (rc != SQLITE_OK)
{
sqlite3_finalize(stmt);
/* ... */
}
This doesn't make any sense. If prepare fails, you do not have a valid
statement handle to call finalize on.
Igor Tandetnik
-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------