From b2a7892b1091cadf0dddedb72adb98067f76f336 Mon Sep 17 00:00:00 2001 From: Michael Trier Date: Fri, 14 Nov 2008 03:57:07 +0000 Subject: Pulled out values test that uses boolean evaluation in the SELECT in order to appropriately flag it as not supported on mssql. I sure hope I didn't jack things up for other dialects. Cleaned up a comment and removed some commented pdb statements. --- lib/sqlalchemy/databases/mssql.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/sqlalchemy/databases') diff --git a/lib/sqlalchemy/databases/mssql.py b/lib/sqlalchemy/databases/mssql.py index f9d8b8f1f..ac803cfd7 100644 --- a/lib/sqlalchemy/databases/mssql.py +++ b/lib/sqlalchemy/databases/mssql.py @@ -1016,9 +1016,10 @@ class MSSQLCompiler(compiler.DefaultCompiler): return super(MSSQLCompiler, self).visit_column(column, result_map=result_map, **kwargs) def visit_binary(self, binary, **kwargs): - """Move bind parameters to the right-hand side of an operator, where possible.""" - #import pdb - #pdb.set_trace() + """Move bind parameters to the right-hand side of an operator, where + possible. + + """ if isinstance(binary.left, expression._BindParamClause) and binary.operator == operator.eq \ and not isinstance(binary.right, expression._BindParamClause): return self.process(expression._BinaryExpression(binary.right, binary.left, binary.operator), **kwargs) -- cgit v1.2.1