Re: [sqlite] sqlite3_prepare_v2 and error reporting

2008-07-27 Thread Glenn Maynard
On Sun, Jul 20, 2008 at 11:50:20PM -0400, Glenn Maynard wrote: > Why does the attached test case show the expected "cannot rollback - > no transaction is active" error with the v1 interface, but the > generic "SQL logic error or missing database" error when using the v2 > interface? > > If I add

Re: [sqlite] sqlite3_prepare_v2 and error reporting

2008-07-20 Thread Glenn Maynard
The list seems to have mysteriously eaten my attachment (perhaps a bad configuration setting): #include #include #include int main() { { sqlite3 *pDatabase; int iRet = sqlite3_open("foo", ); assert(iRet == SQLITE_OK);

[sqlite] sqlite3_prepare_v2 and error reporting

2008-07-20 Thread Glenn Maynard
Why does the attached test case show the expected "cannot rollback - no transaction is active" error with the v1 interface, but the generic "SQL logic error or missing database" error when using the v2 interface? If I add a sqlite3_reset to the v2 interface case (treating it like v1), I get the