diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-07-20 09:48:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-20 09:48:31 +0200 |
commit | 83f55aafdd635189c010cff403f66b54d695921a (patch) | |
tree | ba3f3244e4300bc055555f7693363f28fa885169 /tests/serializers | |
parent | 730711e8282893723f993f55d3e3b0c823cfdb9a (diff) | |
download | django-83f55aafdd635189c010cff403f66b54d695921a.tar.gz |
Fixed #17653 -- Allowed using zero as AutoFields value on MySQL if NO_AUTO_VALUE_ON_ZERO SQL mode is enabled.
Diffstat (limited to 'tests/serializers')
-rw-r--r-- | tests/serializers/test_data.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/serializers/test_data.py b/tests/serializers/test_data.py index 1ddba02565..323cb13e82 100644 --- a/tests/serializers/test_data.py +++ b/tests/serializers/test_data.py @@ -379,8 +379,8 @@ if connection.features.interprets_empty_strings_as_nulls: data[3] is None)] # Regression test for #8651 -- a FK to an object with PK of 0 -# This won't work on MySQL since it won't let you create an object -# with an autoincrement primary key of 0, +# This won't work on MySQL without the NO_AUTO_VALUE_ON_ZERO SQL mode since it +# won't let you create an object with an autoincrement primary key of 0. if connection.features.allows_auto_pk_0: test_data.extend([ (data_obj, 0, Anchor, "Anchor 0"), |