summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/databases/mysql.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2008-05-09 19:00:55 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2008-05-09 19:00:55 +0000
commit84ec085d474f5f8029a52d7f6a24deda56bdfa87 (patch)
treedadfbaa812ee2a8f99006f85f139ac553237f09c /lib/sqlalchemy/databases/mysql.py
parentcbabd91c21eb6fdee4786a3cd3195113fb0b8bed (diff)
downloadsqlalchemy-84ec085d474f5f8029a52d7f6a24deda56bdfa87.tar.gz
MSText no longer implicitly creates TEXT for string with no length
(this actually allows CAST (foo, VARCHAR) to render too)
Diffstat (limited to 'lib/sqlalchemy/databases/mysql.py')
-rw-r--r--lib/sqlalchemy/databases/mysql.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py
index 9cc5c38a6..0f40569b1 100644
--- a/lib/sqlalchemy/databases/mysql.py
+++ b/lib/sqlalchemy/databases/mysql.py
@@ -910,7 +910,7 @@ class MSString(_StringType, sqltypes.String):
if self.length:
return self._extend("VARCHAR(%d)" % self.length)
else:
- return self._extend("TEXT")
+ return self._extend("VARCHAR")
class MSChar(_StringType, sqltypes.CHAR):