summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnssi Kääriäinen <akaariai@gmail.com>2013-02-10 18:36:35 +0200
committerAnssi Kääriäinen <akaariai@gmail.com>2013-02-10 18:56:36 +0200
commit0478780b8efdfcbc0d2c17f1459cac45701e1d86 (patch)
treeab04feb64e1c64c9d980c1beeb718e2ca2f91e17
parenta4e97cf315142e61bb4bc3ed8259b95d8586d09c (diff)
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.
-rw-r--r--django/db/backends/oracle/base.py1
-rw-r--r--django/db/backends/postgresql_psycopg2/base.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/django/db/backends/oracle/base.py b/django/db/backends/oracle/base.py
index 17faa17270..e72a06472c 100644
--- a/django/db/backends/oracle/base.py
+++ b/django/db/backends/oracle/base.py
@@ -78,6 +78,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
can_return_id_from_insert = True
allow_sliced_subqueries = False
supports_subqueries_in_group_by = False
+ supports_transactions = True
supports_timezones = False
supports_bitwise_or = False
can_defer_constraint_checks = True
diff --git a/django/db/backends/postgresql_psycopg2/base.py b/django/db/backends/postgresql_psycopg2/base.py
index 013aaaa91e..b8d7fe3195 100644
--- a/django/db/backends/postgresql_psycopg2/base.py
+++ b/django/db/backends/postgresql_psycopg2/base.py
@@ -84,6 +84,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
has_select_for_update_nowait = True
has_bulk_insert = True
supports_tablespaces = True
+ supports_transactions = True
can_distinct_on_fields = True
class DatabaseWrapper(BaseDatabaseWrapper):