summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/databases/mysql.py
diff options
context:
space:
mode:
authorJason Kirtland <jek@discorporate.us>2007-06-13 17:47:54 +0000
committerJason Kirtland <jek@discorporate.us>2007-06-13 17:47:54 +0000
commite4cd7b2ed4303d2553692037ee74827e3f9dfa12 (patch)
tree67cf1a1ea63789791f7d50ebee12f302baf53daf /lib/sqlalchemy/databases/mysql.py
parent86c9ffeea6e47a1793287703384d8b0f605a6569 (diff)
downloadsqlalchemy-e4cd7b2ed4303d2553692037ee74827e3f9dfa12.tar.gz
- MySQL TEXT-derived types weren't respecting convert_unicode, fixes #601
- unicode type test now exercises Unicode() and Unicode(len)
Diffstat (limited to 'lib/sqlalchemy/databases/mysql.py')
-rw-r--r--lib/sqlalchemy/databases/mysql.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py
index 451b7f36c..09825bef0 100644
--- a/lib/sqlalchemy/databases/mysql.py
+++ b/lib/sqlalchemy/databases/mysql.py
@@ -427,7 +427,8 @@ class MSText(_StringType, sqltypes.TEXT):
"""
_StringType.__init__(self, **kwargs)
- sqltypes.TEXT.__init__(self, length)
+ sqltypes.TEXT.__init__(self, length,
+ kwargs.get('convert_unicode', False))
def get_col_spec(self):
if self.length: