summaryrefslogtreecommitdiff
path: root/django/db/backends/sqlite3
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2014-03-03 20:12:42 -0500
committerSimon Charette <charette.s@gmail.com>2014-03-25 14:31:54 -0400
commit78211b13a51f2ada1c7beb81ff97ef11f9e239eb (patch)
tree2bd0dd1116c06a3705f423d278ee8bf723128995 /django/db/backends/sqlite3
parent7eaf329ad38ff7ea6b47f1b0a3c20ca7a5ad079b (diff)
[1.7.x] Fixed #12030 -- Validate integer field range at the model level.
Thanks to @timgraham for the review. Backport of 1506c71a95 from master
Diffstat (limited to 'django/db/backends/sqlite3')
-rw-r--r--django/db/backends/sqlite3/base.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/django/db/backends/sqlite3/base.py b/django/db/backends/sqlite3/base.py
index 3bb85e042d..9709e8449f 100644
--- a/django/db/backends/sqlite3/base.py
+++ b/django/db/backends/sqlite3/base.py
@@ -292,6 +292,10 @@ class DatabaseOperations(BaseDatabaseOperations):
return 'django_power(%s)' % ','.join(sub_expressions)
return super(DatabaseOperations, self).combine_expression(connector, sub_expressions)
+ def integer_field_range(self, internal_type):
+ # SQLite doesn't enforce any integer constraints
+ return (None, None)
+
class DatabaseWrapper(BaseDatabaseWrapper):
vendor = 'sqlite'