summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/compiler.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/sql/compiler.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/sql/compiler.py')
-rw-r--r--lib/sqlalchemy/sql/compiler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py
index 35a12efe3..70343a7b4 100644
--- a/lib/sqlalchemy/sql/compiler.py
+++ b/lib/sqlalchemy/sql/compiler.py
@@ -286,7 +286,7 @@ class DefaultCompiler(engine.Compiled):
return index.name
def visit_typeclause(self, typeclause, **kwargs):
- return typeclause.type.dialect_impl(self.dialect).get_col_spec()
+ return typeclause.type.dialect_impl(self.dialect, _for_ddl=True).get_col_spec()
def visit_textclause(self, textclause, **kwargs):
if textclause.typemap is not None: