Hi Igor,

This function will be called several times.  The first time through the 
statment won't be prepared, so in that case the function will call 
sqlite3_preapre_v2 to prepare the statement.  Subsequent calls to the function 
will have the statment that is already prepared, so I do not want to attempt to 
call sqlite3_prepare_v2 again on a statment that is already prepared.

 

Thanks very much for your help.
 
> To: sqlite-users@sqlite.org
> From: itandet...@mvps.org
> Date: Tue, 9 Mar 2010 12:04:15 -0500
> Subject: Re: [sqlite] How can I query a sqlite3_stmt to find out if it has 
> been run through the sqlite3_prepare_v2 function?
> 
> Ed Curren <ecur...@hotmail.com> wrote:
> > I have a function that is being passed an sqlite3_stmt object. 
> > Within this function I need to determine if the statement has been
> > prepared. How can I accomplish this? 
> 
> Where else would a statement handle come from, if not from 
> sqlite3_prepare[_v2] ? What precisely is the other possibility you are trying 
> to defend against?
> 
> Igor Tandetnik
> 
> _______________________________________________
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
                                          
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to