Closed anacrolix closed 2 years ago
This might be a subtle error in my own calling code. I get the same issue with crawshaw.
Seems that the error message indicates a statement that has not been stepped through fully: https://sqlite.org/forum/info/52f001ddd522c2bd
Can you post a minimal, reproducible example?
I think it has to do with unclosed incremental BLOB handles, which may be undocumented?
That's quite possible: blob handles are guaranteed to be a snapshot of their value during the transaction.
It looks like stmt_finalize is called from sqlite3_blob_close and that decrements a write counter that prevents savepoints. I don't think this is an issue in this implementation but a general sqlite issue. Thanks Ross
Using sqlitex.Transaction I get a lot of:
But if I manually sqlitex.Exec(... "BEGIN") and "END", I don't have this problem. Is there a difference I should be aware of?