sqlite3_prepare only gives a valid sqlite3_stmt if everything goes ok
so you shouldn't call finalize if an error occurs.


On Mon, 13 Sep 2004 13:11:44 +0200, Tito Ciuro <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> Is it safe to call sqlite3_finalize() even if sqlite3_prepare() has
> returned an error? Or should I call sqlite3_finalize() only when
> sqlite3_prepare() has returned SQLITE_OK?
> 
> TIA,
> 
> -- Tito
> 
> 



-- 
Cory Nelson
http://www.int64.org

Reply via email to