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);
  /* ... */
}

/* ... */
-------------------------------

Naturally I also finalize() after step() when I don't need it anymore.
However is the above correct usage?

Reply via email to