mirror of
https://github.com/django/django.git
synced 2025-05-07 15:36:29 +00:00
[1.5.x] Fixed #19638 -- Skipped tx support testing for some DBs
PostgreSQL and Oracle always support transactions, so the create table and rollback test is non-necessary on those DBs. Thanks to shai for report. Backpatch of 0478780b8efdfcbc0d2c17f1459cac45701e1d86
This commit is contained in:
parent
60186aa2e5
commit
d8e68f421e
@ -78,6 +78,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
|
|||||||
can_return_id_from_insert = True
|
can_return_id_from_insert = True
|
||||||
allow_sliced_subqueries = False
|
allow_sliced_subqueries = False
|
||||||
supports_subqueries_in_group_by = False
|
supports_subqueries_in_group_by = False
|
||||||
|
supports_transactions = True
|
||||||
supports_timezones = False
|
supports_timezones = False
|
||||||
supports_bitwise_or = False
|
supports_bitwise_or = False
|
||||||
can_defer_constraint_checks = True
|
can_defer_constraint_checks = True
|
||||||
|
@ -84,6 +84,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
|
|||||||
has_select_for_update_nowait = True
|
has_select_for_update_nowait = True
|
||||||
has_bulk_insert = True
|
has_bulk_insert = True
|
||||||
supports_tablespaces = True
|
supports_tablespaces = True
|
||||||
|
supports_transactions = True
|
||||||
can_distinct_on_fields = True
|
can_distinct_on_fields = True
|
||||||
|
|
||||||
class DatabaseWrapper(BaseDatabaseWrapper):
|
class DatabaseWrapper(BaseDatabaseWrapper):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user