mirror of
https://github.com/django/django.git
synced 2025-11-02 21:03:53 +00:00
Added support for savepoints in SQLite.
Technically speaking they aren't usable yet.
This commit is contained in:
parent
e264f67174
commit
4b31a6a9e6
4 changed files with 40 additions and 12 deletions
|
|
@ -309,6 +309,8 @@ class TestManyToManyAddTransaction(TransactionTestCase):
|
|||
|
||||
class SavepointTest(TransactionTestCase):
|
||||
|
||||
@skipIf(connection.vendor == 'sqlite',
|
||||
"SQLite doesn't support savepoints in managed mode")
|
||||
@skipUnlessDBFeature('uses_savepoints')
|
||||
def test_savepoint_commit(self):
|
||||
@commit_manually
|
||||
|
|
@ -324,6 +326,8 @@ class SavepointTest(TransactionTestCase):
|
|||
|
||||
work()
|
||||
|
||||
@skipIf(connection.vendor == 'sqlite',
|
||||
"SQLite doesn't support savepoints in managed mode")
|
||||
@skipIf(connection.vendor == 'mysql' and
|
||||
connection.features._mysql_storage_engine == 'MyISAM',
|
||||
"MyISAM MySQL storage engine doesn't support savepoints")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue