#11998: IntegerField not validated for overflow
------------------------------------------------------------+---------------
Reporter: [email protected] | Owner:
nobody
Status: new | Milestone:
1.2
Component: Uncategorized | Version:
1.1
Resolution: | Keywords:
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
------------------------------------------------------------+---------------
Old description:
> Let be this small model :
>
> class IntegerOverflowTest(models.Model):
> someint = models.IntegerField()
>
> For mysql, maximum values for signed integer is 2147483647 [1]
>
> In admin interface, defining a value more than the maximum raises this
> exception :
>
> Warning : Out of range value for column 'someint' at row 1
>
> I would have expected that the form to be validated and prompt the error
> gracefully.
>
> [1] http://dev.mysql.com/doc/refman/5.0/en/numeric-types.html
New description:
Let be this small model :
{{{
class IntegerOverflowTest(models.Model):
someint = models.IntegerField()
}}}
For mysql, maximum values for signed integer is 2147483647 [1]
In admin interface, defining a value more than the maximum raises this
exception :
{{{
Warning : Out of range value for column 'someint' at row 1
}}}
I would have expected that the form to be validated and prompt the error
gracefully.
[1] http://dev.mysql.com/doc/refman/5.0/en/numeric-types.html
Comment (by Alex):
Please use preview.
--
Ticket URL: <http://code.djangoproject.com/ticket/11998#comment:2>
Django <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---