On Tue, Mar 09, 2010 at 11:47:39AM -0500, Ed Curren scratched on the wall:
>
> Hello all,
>
> I have a function that is being passed an sqlite3_stmt object.
I assume you mean a sqlite3_stmt pointer. You should never
instance an actual sqlite3_stmt structure yourself.
> Within this function I need to determine if the statement has been prepared.
> How can I accomplish this?
Ummm... it's a pointer. Set it to NULL when you initialize whatever
data-structure it is in. When you prepare the statement, it will be
non-NULL. If you have reason to call sqlite3_finalize(), set the
pointer back to NULL.
Test for NULL.
-j
--
Jay A. Kreibich < J A Y @ K R E I B I.C H >
"Our opponent is an alien starship packed with atomic bombs. We have
a protractor." "I'll go home and see if I can scrounge up a ruler
and a piece of string." --from Anathem by Neal Stephenson
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users