Fixed #26351 -- Added MySQL check to warn about strict mode option

Thanks Adam Chainz for the initial implementation in django-mysql.
Thanks Adam Chainz, Tim Graham, and Shai Berger for the reviews.
This commit is contained in:
Claude Paroz 2016-03-19 12:15:59 +01:00
parent 0d3c616fbb
commit f9a2a7db17
3 changed files with 50 additions and 0 deletions

View file

@ -592,6 +592,8 @@ If you're using MySQL, the following checks will be performed:
* **mysql.E001**: MySQL does not allow unique ``CharField``\s to have a
``max_length`` > 255.
* **mysql.W002**: MySQL Strict Mode is not set for database connection
'<alias>'. See also :ref:`mysql-sql-mode`.
Templates
---------