[issue28518] execute("begin immediate") throwing OperationalError

Aviv Palivoda report at bugs.python.org
Tue Jan 3 13:02:02 EST 2017


Aviv Palivoda added the comment:

Yes. If a transaction is open you will need to explicitly commit before doing vacuum.
I am not sure if that was intentional or not. From quick look in the sqlite source code there are few things that cannot happen from a transaction:
1. VACUUM
2. ATTACH
3. DETACH
4. BEGIN
5. Few PRAGMAs (temp_store, synchronous)

All of the above worked with implicit commit before commit 284676cf2ac8 but now has to call commit explicitly.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28518>
_______________________________________


More information about the Python-bugs-list mailing list