diff options
| author | sean_c_hsu <s8901489@gmail.com> | 2020-06-15 00:58:06 +0800 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-01-19 20:17:42 +0100 |
| commit | 0f6946495a8ec955b471ca1baaf408ceb53d4796 (patch) | |
| tree | c3d867d141074fb990d3140e02fbaa9d717e8ff2 /django/db/backends/base/operations.py | |
| parent | ba9de2e74edb155067dc96a3369305c9ef4ba385 (diff) | |
Fixed #31685 -- Added support for updating conflicts to QuerySet.bulk_create().
Thanks Florian Apolloner, Chris Jerdonek, Hannes Ljungberg, Nick Pope,
and Mariusz Felisiak for reviews.
Diffstat (limited to 'django/db/backends/base/operations.py')
| -rw-r--r-- | django/db/backends/base/operations.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/db/backends/base/operations.py b/django/db/backends/base/operations.py index 66bb009175..7422137304 100644 --- a/django/db/backends/base/operations.py +++ b/django/db/backends/base/operations.py @@ -717,8 +717,8 @@ class BaseDatabaseOperations: raise ValueError('Unknown options: %s' % ', '.join(sorted(options.keys()))) return self.explain_prefix - def insert_statement(self, ignore_conflicts=False): + def insert_statement(self, on_conflict=None): return 'INSERT INTO' - def ignore_conflicts_suffix_sql(self, ignore_conflicts=None): + def on_conflict_suffix_sql(self, fields, on_conflict, update_fields, unique_fields): return '' |
