From d56e11ffe290515e44d8bdeda76f06ff87a2b096 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 28 Nov 2007 00:44:16 +0000 Subject: default value of assert_unicode is None on String, False on create_engine(), and True on Unicode type. --- lib/sqlalchemy/databases/mysql.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/sqlalchemy/databases/mysql.py') diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py index 03b9a749c..742164412 100644 --- a/lib/sqlalchemy/databases/mysql.py +++ b/lib/sqlalchemy/databases/mysql.py @@ -725,7 +725,7 @@ class MSText(_StringType, sqltypes.TEXT): _StringType.__init__(self, **kwargs) sqltypes.TEXT.__init__(self, length, - kwargs.get('convert_unicode', False)) + kwargs.get('convert_unicode', False), kwargs.get('assert_unicode', None)) def get_col_spec(self): if self.length: @@ -889,7 +889,7 @@ class MSString(_StringType, sqltypes.String): _StringType.__init__(self, **kwargs) sqltypes.String.__init__(self, length, - kwargs.get('convert_unicode', False)) + kwargs.get('convert_unicode', False), kwargs.get('assert_unicode', None)) def get_col_spec(self): if self.length: -- cgit v1.2.1