summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMads Jensen <mje@inducks.org>2017-09-18 14:12:35 +0200
committerTim Graham <timograham@gmail.com>2017-09-18 08:12:35 -0400
commit3939e2b4dc0719075c29c968d09a746c2e10cb8c (patch)
tree251e4a32287e9a9abd872c2af7f1344adc5b72e2
parent256182c43d2ff029a4c55c74e43041c79d819cf6 (diff)
Changed default value of DatabaseFeatures.has_bulk_insert to True.
-rw-r--r--django/db/backends/base/features.py2
-rw-r--r--django/db/backends/mysql/features.py1
-rw-r--r--django/db/backends/oracle/features.py1
-rw-r--r--django/db/backends/postgresql/features.py1
-rw-r--r--django/db/backends/sqlite3/features.py1
5 files changed, 1 insertions, 5 deletions
diff --git a/django/db/backends/base/features.py b/django/db/backends/base/features.py
index 22c2990e77..cbf3f024d9 100644
--- a/django/db/backends/base/features.py
+++ b/django/db/backends/base/features.py
@@ -25,7 +25,7 @@ class BaseDatabaseFeatures:
can_use_chunked_reads = True
can_return_id_from_insert = False
can_return_ids_from_bulk_insert = False
- has_bulk_insert = False
+ has_bulk_insert = True
uses_savepoints = False
can_release_savepoints = False
diff --git a/django/db/backends/mysql/features.py b/django/db/backends/mysql/features.py
index 7b475de380..033460e09b 100644
--- a/django/db/backends/mysql/features.py
+++ b/django/db/backends/mysql/features.py
@@ -8,7 +8,6 @@ class DatabaseFeatures(BaseDatabaseFeatures):
allows_group_by_pk = True
related_fields_match_type = True
allow_sliced_subqueries = False
- has_bulk_insert = True
has_select_for_update = True
has_select_for_update_nowait = False
supports_forward_references = False
diff --git a/django/db/backends/oracle/features.py b/django/db/backends/oracle/features.py
index 5cb012659c..62d7c75300 100644
--- a/django/db/backends/oracle/features.py
+++ b/django/db/backends/oracle/features.py
@@ -21,7 +21,6 @@ class DatabaseFeatures(BaseDatabaseFeatures):
can_defer_constraint_checks = True
supports_partially_nullable_unique_constraints = False
truncates_names = True
- has_bulk_insert = True
supports_tablespaces = True
supports_sequence_reset = False
can_introspect_time_field = False
diff --git a/django/db/backends/postgresql/features.py b/django/db/backends/postgresql/features.py
index 3c7a7af80f..de3fc6d1af 100644
--- a/django/db/backends/postgresql/features.py
+++ b/django/db/backends/postgresql/features.py
@@ -14,7 +14,6 @@ class DatabaseFeatures(BaseDatabaseFeatures):
has_select_for_update = True
has_select_for_update_nowait = True
has_select_for_update_of = True
- has_bulk_insert = True
uses_savepoints = True
can_release_savepoints = True
supports_tablespaces = True
diff --git a/django/db/backends/sqlite3/features.py b/django/db/backends/sqlite3/features.py
index a68633836d..fcebec063e 100644
--- a/django/db/backends/sqlite3/features.py
+++ b/django/db/backends/sqlite3/features.py
@@ -16,7 +16,6 @@ class DatabaseFeatures(BaseDatabaseFeatures):
supports_timezones = False
max_query_params = 999
supports_mixed_date_datetime_comparisons = False
- has_bulk_insert = True
supports_column_check_constraints = False
autocommits_when_autocommit_is_off = True
can_introspect_decimal_field = False