1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00
django/tests/backends
Matthijs Kooijman 98f23a8af0 Fixed #26552 -- Deferred constraint checks when reloading the database with data for tests.
deserialize_db_from_string() loads the full serialized database
contents, which might contain forward references and cycles. That
caused IntegrityError because constraints were checked immediately.

Now, it loads data in a transaction with constraint checks deferred
until the end of the transaction.
2020-02-14 13:18:06 +01:00
..
base Fixed #26552 -- Deferred constraint checks when reloading the database with data for tests. 2020-02-14 13:18:06 +01:00
mysql Simplified imports from django.db and django.contrib.gis.db. 2020-02-04 13:20:06 +01:00
oracle Simplified imports from django.db and django.contrib.gis.db. 2020-02-04 13:20:06 +01:00
postgresql Fixed #31233 -- Closed database connections and cursors after use. 2020-02-06 15:35:23 +01:00
sqlite Fixed #31233 -- Closed database connections and cursors after use. 2020-02-06 15:35:23 +01:00
__init__.py
models.py Fixed #26552 -- Deferred constraint checks when reloading the database with data for tests. 2020-02-14 13:18:06 +01:00
test_ddl_references.py Refs #23919 -- Stopped inheriting from object to define new style classes. 2017-06-26 10:30:31 -04:00
test_utils.py Simplified imports from django.db and django.contrib.gis.db. 2020-02-04 13:20:06 +01:00
tests.py Fixed #31233 -- Closed database connections and cursors after use. 2020-02-06 15:35:23 +01:00