From ea46e556f9f691735bc14885648a92e8cf7177d5 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sat, 10 Nov 2007 03:02:16 +0000 Subject: - anonymous column expressions are automatically labeled. e.g. select([x* 5]) produces "SELECT x * 5 AS anon_1". This allows the labelname to be present in the cursor.description which can then be appropriately matched to result-column processing rules. (we can't reliably use positional tracking for result-column matches since text() expressions may represent multiple columns). - operator overloading is now controlled by TypeEngine objects - the one built-in operator overload so far is String types overloading '+' to be the string concatenation operator. User-defined types can also define their own operator overloading by overriding the adapt_operator(self, op) method. - untyped bind parameters on the right side of a binary expression will be assigned the type of the left side of the operation, to better enable the appropriate bind parameter processing to take effect [ticket:819] --- lib/sqlalchemy/databases/mssql.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/sqlalchemy/databases/mssql.py') diff --git a/lib/sqlalchemy/databases/mssql.py b/lib/sqlalchemy/databases/mssql.py index 38e8e1217..92b454f82 100644 --- a/lib/sqlalchemy/databases/mssql.py +++ b/lib/sqlalchemy/databases/mssql.py @@ -895,13 +895,13 @@ class MSSQLCompiler(compiler.DefaultCompiler): kwargs['mssql_aliased'] = True return super(MSSQLCompiler, self).visit_alias(alias, **kwargs) - def visit_column(self, column): + def visit_column(self, column, **kwargs): if column.table is not None and not self.isupdate and not self.isdelete: # translate for schema-qualified table aliases t = self._schema_aliased_table(column.table) if t is not None: return self.process(t.corresponding_column(column)) - return super(MSSQLCompiler, self).visit_column(column) + return super(MSSQLCompiler, self).visit_column(column, **kwargs) def visit_binary(self, binary): """Move bind parameters to the right-hand side of an operator, where possible.""" -- cgit v1.2.1