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
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
2 matches
Mail list logo