diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2017-07-27 19:36:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-27 19:36:47 +0200 |
commit | b61d5b1991e2ca2c3450ccc334224f3d51da39dc (patch) | |
tree | 8cb9dee554eb78d43d69950dcf756d8eedac5d0d /django/db/backends/mysql/operations.py | |
parent | 14172cf4426de6c867028f1c194011c0a26e662d (diff) | |
download | django-b61d5b1991e2ca2c3450ccc334224f3d51da39dc.tar.gz |
Fixed #28371 -- Fixed Cast() with CharField if the max_length argument isn't provided.
Thanks Tim Graham for the review.
Diffstat (limited to 'django/db/backends/mysql/operations.py')
-rw-r--r-- | django/db/backends/mysql/operations.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/db/backends/mysql/operations.py b/django/db/backends/mysql/operations.py index 71592234aa..e4492f866f 100644 --- a/django/db/backends/mysql/operations.py +++ b/django/db/backends/mysql/operations.py @@ -24,6 +24,7 @@ class DatabaseOperations(BaseDatabaseOperations): 'PositiveIntegerField': 'unsigned integer', 'PositiveSmallIntegerField': 'unsigned integer', } + cast_char_field_without_max_length = 'char' def date_extract_sql(self, lookup_type, field_name): # http://dev.mysql.com/doc/mysql/en/date-and-time-functions.html |