This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author malin
Recipients malin
Date 2016-12-18.03:19:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1482031172.61.0.238447305866.issue29003@psf.upfronthosting.co.za>
In-reply-to
Content
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 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.

----------
related issue: #10740 sqlite3 module breaks transactions and potentially corrupts data

R. David Murray said in #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.
History
Date User Action Args
2016-12-18 03:19:32malinsetrecipients: + malin
2016-12-18 03:19:32malinsetmessageid: <1482031172.61.0.238447305866.issue29003@psf.upfronthosting.co.za>
2016-12-18 03:19:32malinlinkissue29003 messages
2016-12-18 03:19:31malincreate