Re: [sqlite] Spooky behavior of sqlite3_prepare_v2

2010-10-12 Thread Zvone
Solved this myself so no help needed. Apparently the problem was last parameter in sqlite3_prepare_v2 which was pointing to unallocated memory after execution. As NULL is allowed, I simply put it to NULL to ignore it which solved the whole thing. That kind of explains all the spooky behaviour as

[sqlite] Spooky behavior of sqlite3_prepare_v2

2010-10-12 Thread Zvone
I don't believe this! Now I want to do a wrapper for Insert - by doing simple calls to: loop this: { sqlite3_prepare_v2 sqlite3_bind_* sqlite3_step sqlite3_finalize } By my understanding this is what SQLite exec does - prepare, then step, then finalize and it works. The problem is - when I