Made DatabaseFeatures.uses_savepoints default to True.
This commit is contained in:
parent
83c7096f2a
commit
9b52bd6575
|
@ -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
|
||||
|
|
|
@ -3,3 +3,4 @@ from django.db.backends.base.features import BaseDatabaseFeatures
|
|||
|
||||
class DummyDatabaseFeatures(BaseDatabaseFeatures):
|
||||
supports_transactions = False
|
||||
uses_savepoints = False
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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`
|
||||
-------------------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue