From 3939e2b4dc0719075c29c968d09a746c2e10cb8c Mon Sep 17 00:00:00 2001 From: Mads Jensen Date: Mon, 18 Sep 2017 14:12:35 +0200 Subject: [PATCH] Changed default value of DatabaseFeatures.has_bulk_insert to True. --- django/db/backends/base/features.py | 2 +- django/db/backends/mysql/features.py | 1 - django/db/backends/oracle/features.py | 1 - django/db/backends/postgresql/features.py | 1 - django/db/backends/sqlite3/features.py | 1 - 5 files changed, 1 insertion(+), 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