diff options
author | Sergey Fedoseev <fedoseev.sergey@gmail.com> | 2018-03-13 06:57:14 +0500 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2018-03-12 21:57:14 -0400 |
commit | d696fccae6ea0868855aa28f8d2bc2f7f77ac208 (patch) | |
tree | bb0c35b94e9c1705411168cef3fcfdba6a95f8ad /django/db/backends/mysql/operations.py | |
parent | c12745f6826280acb637f9c43cd2c7c2ef3d8761 (diff) | |
download | django-d696fccae6ea0868855aa28f8d2bc2f7f77ac208.tar.gz |
Fixed #29209 -- Fixed Cast() with TextField on MySQL and Oracle.
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 88e47b95ba..2b85be9c56 100644 --- a/django/db/backends/mysql/operations.py +++ b/django/db/backends/mysql/operations.py @@ -18,6 +18,7 @@ class DatabaseOperations(BaseDatabaseOperations): } cast_data_types = { 'CharField': 'char(%(max_length)s)', + 'TextField': 'char', 'IntegerField': 'signed integer', 'BigIntegerField': 'signed integer', 'SmallIntegerField': 'signed integer', |