Opened 8 years ago

Closed 8 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 Changed 8 years ago by Ilja Maas

Will fix #21163 too

Thanx for removing

comment:2 Changed 8 years ago by Tim Graham <timograham@…>

Resolution: fixed
Status: newclosed

In 5bcd292098b4de7bb03ef778e24d9e2f433d0dae:

Fixed #23871 -- Removed promotion of MySQL warnings to errors in DEBUG mode.

Note: See TracTickets for help on using tickets.
Back to Top