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 using Python 3.6.0 RC2.
When I try to run VACUUM command, an exception raised:
conn.execute('begin') # <- remove this line get the same resultconn.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.
----------
related issue: bpo-10740 sqlite3 module breaks transactions and potentially corrupts data
R. David Murray said in bpo-10740 about this issue:
It is an unexpected change in behavior and is therefore probably a bug. It will work if you set isolation_level=None. Because of that I don't think it is a release critical bug, though one could wish we'd discovered it earlier.
Activity
animalize commentedon Dec 18, 2016
I'm using Python 3.6.0 RC2.
When I try to run VACUUM command, an exception raised:
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.
----------
related issue: bpo-10740 sqlite3 module breaks transactions and potentially corrupts data
R. David Murray said in bpo-10740 about this issue:
It is an unexpected change in behavior and is therefore probably a bug. It will work if you set isolation_level=None. Because of that I don't think it is a release critical bug, though one could wish we'd discovered it earlier.
berkerpeksag commentedon Dec 29, 2016
Thanks for trying pre-release versions of Python 3.6, Ma Lin. This has already been reported in bpo-28518 so I'm closing this as a duplicate.