On Fri, 24 Sep 2004, Vladimir Vukicevic wrote:

>I'm creating a few prepared statements using sqlite3_prepare; making
>that call seems to set db->pVdbe to the newly compiled statement,
>which seems reasonable.  However, calling sqlite3_create_function
>after this results in SQLITE_ERROR, with an error message indicating
>that the library functions were used out of order.  It looks like
>sqlite3_create_function is calling sqlite3SafetyCheck, which checks to
>make sure that db->pVdbe is NULL, which fails.
>
>Is there any way to get the database handle in a state such that
>sqlite3_create_function can be called at any time?


Why?

Functions are static, you set them up at initialisation time. So why
register functions after preparing a statement for execution.


>
>Thanks,
>    - Vlad
>

-- 
    /"\
    \ /    ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL
     X                           - AGAINST MS ATTACHMENTS
    / \

Reply via email to