[Django] #23871: MySQL database backend shouldn't promote warnings to exceptions in DEBUG mode

8 views
Skip to first unread message

Django

unread,
Nov 19, 2014, 2:31:43 PM11/19/14
to django-...@googlegroups.com
#23871: MySQL database backend shouldn't promote warnings to exceptions in DEBUG
mode
-------------------------------------+-------------------------------------
Reporter: timgraham | Owner: timgraham
Type: | Status: new
Cleanup/optimization | Version: master
Component: Database | Keywords:
layer (models, ORM) | Has patch: 1
Severity: Normal | Needs tests: 0
Triage Stage: Accepted | Easy pickings: 0
Needs documentation: 0 |
Patch needs improvement: 0 |
UI/UX: 0 |
-------------------------------------+-------------------------------------
Quoting Aymeric in the [https://groups.google.com/d/topic/django-
developers/FwMI7_qcXHU/discussion 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

--
Ticket URL: <https://code.djangoproject.com/ticket/23871>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Nov 19, 2014, 3:17:36 PM11/19/14
to django-...@googlegroups.com
#23871: MySQL database backend shouldn't promote warnings to exceptions in DEBUG
mode
-------------------------------------+-------------------------------------
Reporter: timgraham | Owner: timgraham
Type: | Status: new
Cleanup/optimization | Version: master
Component: Database layer | Resolution:
(models, ORM) | Triage Stage: Accepted
Severity: Normal | Needs documentation: 0
Keywords: | Patch needs improvement: 0
Has patch: 1 | UI/UX: 0
Needs tests: 0 |
Easy pickings: 0 |
-------------------------------------+-------------------------------------

Comment (by iljamaas):

Will fix #21163 too

Thanx for removing

--
Ticket URL: <https://code.djangoproject.com/ticket/23871#comment:1>

Django

unread,
Nov 19, 2014, 4:09:07 PM11/19/14
to django-...@googlegroups.com
#23871: MySQL database backend shouldn't promote warnings to exceptions in DEBUG
mode
-------------------------------------+-------------------------------------
Reporter: timgraham | Owner: timgraham
Type: | Status: closed
Cleanup/optimization | Version: master
Component: Database layer | Resolution: fixed

(models, ORM) | Triage Stage: Accepted
Severity: Normal | Needs documentation: 0
Keywords: | Patch needs improvement: 0
Has patch: 1 | UI/UX: 0
Needs tests: 0 |
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):

* status: new => closed
* resolution: => fixed


Comment:

In [changeset:"5bcd292098b4de7bb03ef778e24d9e2f433d0dae"]:
{{{
#!CommitTicketReference repository=""
revision="5bcd292098b4de7bb03ef778e24d9e2f433d0dae"
Fixed #23871 -- Removed promotion of MySQL warnings to errors in DEBUG
mode.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/23871#comment:2>

Reply all
Reply to author
Forward
0 new messages