diff options
| author | Tobias Krönke <tobias@kroenke.de> | 2020-06-12 14:54:23 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-06-15 12:10:15 +0200 |
| commit | 69e0d9c553bb55dde8d7d1d479a78bfa7093f406 (patch) | |
| tree | a7a114bb216e4534259c7b88849fca05d09ed389 /docs | |
| parent | a16080810bee8b3baf9ae7ac7b8433cb7b293e00 (diff) | |
Fixed #31689 -- Doc'd caveat about using bulk_create()'s ignore_conflicts on MariDB and MySQL.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/models/querysets.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt index 01ba71c182..d70f7deca3 100644 --- a/docs/ref/models/querysets.txt +++ b/docs/ref/models/querysets.txt @@ -2119,6 +2119,17 @@ that fail constraints such as duplicate unique values. Enabling this parameter disables setting the primary key on each model instance (if the database normally supports it). +.. warning:: + + On MySQL and MariaDB, setting the ``ignore_conflicts`` parameter to + ``True`` turns certain types of errors, other than duplicate key, into + warnings. Even with Strict Mode. For example: invalid values or + non-nullable violations. See the `MySQL documentation`_ and + `MariaDB documentation`_ for more details. + +.. _MySQL documentation: https://dev.mysql.com/doc/refman/en/sql-mode.html#ignore-strict-comparison +.. _MariaDB documentation: https://mariadb.com/kb/en/ignore/ + Returns ``objs`` as cast to a list, in the same order as provided. .. versionchanged:: 3.1 |
