From e4cd7b2ed4303d2553692037ee74827e3f9dfa12 Mon Sep 17 00:00:00 2001 From: Jason Kirtland Date: Wed, 13 Jun 2007 17:47:54 +0000 Subject: - MySQL TEXT-derived types weren't respecting convert_unicode, fixes #601 - unicode type test now exercises Unicode() and Unicode(len) --- lib/sqlalchemy/databases/mysql.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/sqlalchemy/databases/mysql.py') 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: -- cgit v1.2.1