summaryrefslogtreecommitdiff
path: root/django/db/backends/mysql/operations.py
diff options
context:
space:
mode:
authorPetr Čermák <pcermak@live.com>2020-09-08 16:21:41 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-09-09 07:01:18 +0200
commitfc1446073ed9636047c48796cc20772ab60e12b0 (patch)
treebb57977711260879615a7300ae4710fea1b9b12d /django/db/backends/mysql/operations.py
parent5ea1621c724e765c9a642a1b3b6e83419fda920b (diff)
downloaddjango-fc1446073ed9636047c48796cc20772ab60e12b0.tar.gz
Fixed #31987 -- Fixed Cast() with DurationField on MySQL.
Diffstat (limited to 'django/db/backends/mysql/operations.py')
-rw-r--r--django/db/backends/mysql/operations.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/db/backends/mysql/operations.py b/django/db/backends/mysql/operations.py
index 05523fcdbe..8d5d7bc866 100644
--- a/django/db/backends/mysql/operations.py
+++ b/django/db/backends/mysql/operations.py
@@ -29,6 +29,7 @@ class DatabaseOperations(BaseDatabaseOperations):
'PositiveBigIntegerField': 'unsigned integer',
'PositiveIntegerField': 'unsigned integer',
'PositiveSmallIntegerField': 'unsigned integer',
+ 'DurationField': 'signed integer',
}
cast_char_field_without_max_length = 'char'
explain_prefix = 'EXPLAIN'