#27979: Using F() to save negative integers in unsigned columns on MySQL should
raise IntegrityError rather than OperationalError
-------------------------------------+-------------------------------------
Reporter: Chris Dary | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: Database layer | Version: 1.10
(models, ORM) |
Severity: Normal | Resolution: fixed
Keywords: db, mysql, | Triage Stage: Ready for
exceptions, OperationalError | checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Tim Graham <timograham@…>):
In [changeset:"d6cec5f6ffd1b5dc906a85ecbb0ca8d11e6d494d" d6cec5f]:
{{{
#!CommitTicketReference repository=""
revision="d6cec5f6ffd1b5dc906a85ecbb0ca8d11e6d494d"
[2.0.x] Fixed #27979 -- Made MySQL raise IntegrityError rather than
OperationalError when saving negative numbers in PositiveInteger fields.
Backport of dd82f3327124fd2762cf6df2ac8c6380772bf127 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27979#comment:10>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/064.eb9d0a34e1848ec3c0456a865d049dfd%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.