﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
28263	TestCase breaks for databases that don't support savepoints	Lokesh Dokara	Tim Graham	"{{{TestCase}}}s with more than one test fail with 
{{{
TransactionManagementError: An error occurred in the current transaction. You can't execute queries until the end of the 'atomic' block.
}}} 
when {{{uses_savepoints = False}}} and {{{supports_transactions = True}}}.

To reproduce this issue set {{{uses_savepoints = False}}} for any of the backends other than MySQL with MyISAM as MyISAM engine doesn't transactions as well. This setting can be set in any of the following files according to the database used.
* {{{django/db/backends/postgresql/features.py}}}
* {{{django/db/backends/mysql/features.py}}}
* {{{django/db/backends/sqlite3/features.py}}}

 I feel this case is not handled in the implementation of {{{TestCase}}}."	Bug	closed	Testing framework	1.11	Normal	fixed			Accepted	1	0	0	0	0	0
