From 3e9df22546cb4c7af0ece290f4f57a377516f142 Mon Sep 17 00:00:00 2001 From: Jason Kirtland Date: Thu, 10 Jan 2008 23:16:56 +0000 Subject: Include column name in length-less String warning (more [ticket:912]) --- lib/sqlalchemy/databases/mysql.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/sqlalchemy/databases/mysql.py') diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py index 588ea341d..17defbb70 100644 --- a/lib/sqlalchemy/databases/mysql.py +++ b/lib/sqlalchemy/databases/mysql.py @@ -1956,7 +1956,8 @@ class MySQLSchemaGenerator(compiler.SchemaGenerator): """Builds column DDL.""" colspec = [self.preparer.format_column(column), - column.type.dialect_impl(self.dialect, _for_ddl=True).get_col_spec()] + column.type.dialect_impl(self.dialect, + _for_ddl=column).get_col_spec()] default = self.get_column_default_string(column) if default is not None: -- cgit v1.2.1