You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure CheckReset is checking the right thing. lastHasRow is false if the last step returned SQLITE_DONE, but I can't find anywhere in the docs a guarantee that it's the same as being reset.
For example, I wonder if the implicit transaction is committed:
An implicit transaction (a transaction that is started automatically, not a transaction started by BEGIN) is committed automatically when the last active statement finishes. A statement finishes when its prepared statement is reset or finalized.
Pool.Put should probably call Reset automatically if lastHasRow is false, though.
We already check
Conn.CheckReset
inPool.Put
. All we have to do is make sure all connections are returned to the pool beforeClose
is called.The text was updated successfully, but these errors were encountered: