[issue10740] sqlite3 module breaks transactions and potentially corrupts data
Ma Lin
report at bugs.python.org
Sat Dec 17 21:45:10 EST 2016
Ma Lin added the comment:
I'm using Python 3.6.0 RC2, I don't know if it's a bug.
When I try to run VACUUM command, an exception raised:
conn.execute('begin') # <- remove this line get the same result
conn.execute('VACUUM')
sqlite3.OperationalError: cannot VACUUM from within a transaction
~~~~~~~~~~~~~~~~~~~
On Python 3.5, everything is fine.
Attached file cant_vacuum.py is the full example code.
----------
nosy: +Ma Lin
Added file: http://bugs.python.org/file45949/cant_vacuum.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10740>
_______________________________________
More information about the Python-bugs-list
mailing list