summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/databases/mssql.py
diff options
context:
space:
mode:
authorMichael Trier <mtrier@gmail.com>2008-11-14 03:57:07 +0000
committerMichael Trier <mtrier@gmail.com>2008-11-14 03:57:07 +0000
commitb2a7892b1091cadf0dddedb72adb98067f76f336 (patch)
tree2422edebb9f65ff0c71c6046dec0a9a44a0cad82 /lib/sqlalchemy/databases/mssql.py
parent61178c5d6d23f3643c54bfb87b42773691c8a0b7 (diff)
downloadsqlalchemy-b2a7892b1091cadf0dddedb72adb98067f76f336.tar.gz
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.
Diffstat (limited to 'lib/sqlalchemy/databases/mssql.py')
-rw-r--r--lib/sqlalchemy/databases/mssql.py7
1 files changed, 4 insertions, 3 deletions
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)