Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[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 0478780
  • Loading branch information...
commit d8e68f421e676de16953090c187e165a6c1ed900 1 parent 60186aa
Anssi Kääriäinen authored February 10, 2013
1  django/db/backends/oracle/base.py
@@ -78,6 +78,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
78 78
     can_return_id_from_insert = True
79 79
     allow_sliced_subqueries = False
80 80
     supports_subqueries_in_group_by = False
  81
+    supports_transactions = True
81 82
     supports_timezones = False
82 83
     supports_bitwise_or = False
83 84
     can_defer_constraint_checks = True
1  django/db/backends/postgresql_psycopg2/base.py
@@ -84,6 +84,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
84 84
     has_select_for_update_nowait = True
85 85
     has_bulk_insert = True
86 86
     supports_tablespaces = True
  87
+    supports_transactions = True
87 88
     can_distinct_on_fields = True
88 89
 
89 90
 class DatabaseWrapper(BaseDatabaseWrapper):

0 notes on commit d8e68f4

Please sign in to comment.
Something went wrong with that request. Please try again.