From 8fe38c7e956675eb9b6c859848200d8dcc7a9589 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sat, 5 Jan 2008 22:59:18 +0000 Subject: - changed name of TEXT to Text since its a "generic" type; TEXT name is deprecated until 0.5. The "upgrading" behavior of String to Text when no length is present is also deprecated until 0.5; will issue a warning when used for CREATE TABLE statements (String with no length for SQL expression purposes is still fine) [ticket:912] --- lib/sqlalchemy/databases/mysql.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/sqlalchemy/databases/mysql.py') diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py index d89b6f5db..4f7f10a78 100644 --- a/lib/sqlalchemy/databases/mysql.py +++ b/lib/sqlalchemy/databases/mysql.py @@ -685,7 +685,7 @@ class MSYear(sqltypes.TypeEngine): else: return "YEAR(%s)" % self.length -class MSText(_StringType, sqltypes.TEXT): +class MSText(_StringType, sqltypes.Text): """MySQL TEXT type, for text up to 2^16 characters.""" def __init__(self, length=None, **kwargs): @@ -724,7 +724,7 @@ class MSText(_StringType, sqltypes.TEXT): """ _StringType.__init__(self, **kwargs) - sqltypes.TEXT.__init__(self, length, + sqltypes.Text.__init__(self, length, kwargs.get('convert_unicode', False), kwargs.get('assert_unicode', None)) def get_col_spec(self): @@ -1318,7 +1318,7 @@ colspecs = { sqltypes.String: MSString, sqltypes.Binary: MSBlob, sqltypes.Boolean: MSBoolean, - sqltypes.TEXT: MSText, + sqltypes.Text: MSText, sqltypes.CHAR: MSChar, sqltypes.NCHAR: MSNChar, sqltypes.TIMESTAMP: MSTimeStamp, -- cgit v1.2.1