1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Made DatabaseFeatures.uses_savepoints default to True.

This commit is contained in:
Tim Graham 2018-10-25 10:02:47 -04:00
parent 83c7096f2a
commit 9b52bd6575
7 changed files with 4 additions and 5 deletions

View File

@ -26,7 +26,7 @@ class BaseDatabaseFeatures:
can_return_id_from_insert = False
can_return_ids_from_bulk_insert = False
has_bulk_insert = True
uses_savepoints = False
uses_savepoints = True
can_release_savepoints = False
# If True, don't use integer foreign keys referring to, e.g., positive

View File

@ -3,3 +3,4 @@ from django.db.backends.base.features import BaseDatabaseFeatures
class DummyDatabaseFeatures(BaseDatabaseFeatures):
supports_transactions = False
uses_savepoints = False

View File

@ -23,7 +23,6 @@ class DatabaseFeatures(BaseDatabaseFeatures):
supports_timezones = False
requires_explicit_null_ordering_when_grouping = True
allows_auto_pk_0 = False
uses_savepoints = True
can_release_savepoints = True
atomic_transactions = False
supports_column_check_constraints = False

View File

@ -5,7 +5,6 @@ from django.utils.functional import cached_property
class DatabaseFeatures(BaseDatabaseFeatures):
interprets_empty_strings_as_nulls = True
uses_savepoints = True
has_select_for_update = True
has_select_for_update_nowait = True
has_select_for_update_skip_locked = True

View File

@ -14,7 +14,6 @@ class DatabaseFeatures(BaseDatabaseFeatures):
has_select_for_update = True
has_select_for_update_nowait = True
has_select_for_update_of = True
uses_savepoints = True
can_release_savepoints = True
supports_tablespaces = True
supports_transactions = True

View File

@ -29,7 +29,6 @@ class DatabaseFeatures(BaseDatabaseFeatures):
ignores_table_name_case = True
supports_cast_with_precision = False
time_cast_precision = 3
uses_savepoints = True
can_release_savepoints = True
@cached_property

View File

@ -283,6 +283,8 @@ Database backend API
``DurationField`` or set ``DatabaseFeatures.can_introspect_duration_field``
to ``False``.
* ``DatabaseFeatures.uses_savepoints`` now defaults to ``True``.
:mod:`django.contrib.gis`
-------------------------