summaryrefslogtreecommitdiff
path: root/django/db/backends/mysql/operations.py
diff options
context:
space:
mode:
authorGeorge Marshall <george@georgemarshall.name>2015-11-16 22:28:03 -0800
committerTim Graham <timograham@gmail.com>2015-11-24 11:09:15 -0500
commit710e11d076b9e5ef3e3b486dfb70bb55b788691c (patch)
tree16f2a8fda288b6c7e732fb2a1e2a1d3a89bc7387 /django/db/backends/mysql/operations.py
parenta918f8b089a1d702c50c44742f433f3a546e0aa2 (diff)
downloaddjango-710e11d076b9e5ef3e3b486dfb70bb55b788691c.tar.gz
Fixed #25767 -- Fixed data truncation possibility with Positive(Small)IntegerField on MySQL.
Diffstat (limited to 'django/db/backends/mysql/operations.py')
-rw-r--r--django/db/backends/mysql/operations.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/db/backends/mysql/operations.py b/django/db/backends/mysql/operations.py
index 8fc67ff8e3..f81bf683b3 100644
--- a/django/db/backends/mysql/operations.py
+++ b/django/db/backends/mysql/operations.py
@@ -13,8 +13,8 @@ class DatabaseOperations(BaseDatabaseOperations):
# MySQL stores positive fields as UNSIGNED ints.
integer_field_ranges = dict(BaseDatabaseOperations.integer_field_ranges,
- PositiveSmallIntegerField=(0, 4294967295),
- PositiveIntegerField=(0, 18446744073709551615),
+ PositiveSmallIntegerField=(0, 65535),
+ PositiveIntegerField=(0, 4294967295),
)
def date_extract_sql(self, lookup_type, field_name):