summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/databases/mysql.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2007-11-28 00:44:16 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2007-11-28 00:44:16 +0000
commitd56e11ffe290515e44d8bdeda76f06ff87a2b096 (patch)
treeb290e2ec80656d30b7c9d1610093ffe391527773 /lib/sqlalchemy/databases/mysql.py
parent3f6e94e8185591bd5a32f3558bb5419e0df01763 (diff)
downloadsqlalchemy-d56e11ffe290515e44d8bdeda76f06ff87a2b096.tar.gz
default value of assert_unicode is None on String, False on create_engine(), and True on Unicode type.
Diffstat (limited to 'lib/sqlalchemy/databases/mysql.py')
-rw-r--r--lib/sqlalchemy/databases/mysql.py4
1 files changed, 2 insertions, 2 deletions
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: