summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/databases/mysql.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2008-01-05 22:59:18 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2008-01-05 22:59:18 +0000
commit8fe38c7e956675eb9b6c859848200d8dcc7a9589 (patch)
tree922a48aafb9fece7e9b4b9fde469d46c389d1692 /lib/sqlalchemy/databases/mysql.py
parent68a9e6cb1fc53d6a989fa3ef6febcbe7ee304ebd (diff)
downloadsqlalchemy-8fe38c7e956675eb9b6c859848200d8dcc7a9589.tar.gz
- 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]
Diffstat (limited to 'lib/sqlalchemy/databases/mysql.py')
-rw-r--r--lib/sqlalchemy/databases/mysql.py6
1 files changed, 3 insertions, 3 deletions
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,