summaryrefslogtreecommitdiff
path: root/tests/bulk_create
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bulk_create')
-rw-r--r--tests/bulk_create/tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/bulk_create/tests.py b/tests/bulk_create/tests.py
index ff89bcb1dd..2b1d901e31 100644
--- a/tests/bulk_create/tests.py
+++ b/tests/bulk_create/tests.py
@@ -115,7 +115,8 @@ class BulkCreateTests(TestCase):
def test_zero_as_autoval(self):
"""
Zero as id for AutoField should raise exception in MySQL, because MySQL
- does not allow zero for automatic primary key.
+ does not allow zero for automatic primary key if the
+ NO_AUTO_VALUE_ON_ZERO SQL mode is not enabled.
"""
valid_country = Country(name='Germany', iso_two_letter='DE')
invalid_country = Country(id=0, name='Poland', iso_two_letter='PL')