Opened 10 years ago
Closed 10 years ago
#23871 closed Cleanup/optimization (fixed)
MySQL database backend shouldn't promote warnings to exceptions in DEBUG mode
Reported by: | Tim Graham | Owned by: | Tim Graham |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Quoting Aymeric in the django-developers thread:
- there's absolutely no reason to be more strict in development than in production
- promoting warnings to exceptions in production would be subtly backwards-incompatible
- you can enable this behavior in the MySQL configuration e.g. by enabling Strict SQL Mode
Change History (2)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Will fix #21163 too
Thanx for removing