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?
Thanks,
- Vlad