1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #31987 -- Fixed Cast() with DurationField on MySQL.

This commit is contained in:
Petr Čermák
2020-09-08 16:21:41 +02:00
committed by Mariusz Felisiak
parent 5ea1621c72
commit fc1446073e
2 changed files with 11 additions and 0 deletions

View File

@@ -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'