summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/compiler.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2011-09-09 16:03:23 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2011-09-09 16:03:23 -0400
commit840aab3beacdd1fe2a000dcd761d0514035cff94 (patch)
treef50542c02df4aef4573fac611c536f48ba47af39 /lib/sqlalchemy/sql/compiler.py
parent1492cc634ee67afb5ad03f0d56caca9fc3bbcc0e (diff)
downloadsqlalchemy-840aab3beacdd1fe2a000dcd761d0514035cff94.tar.gz
- Behavioral improvement: empty
conjunctions such as and_() and or_() will be flattened in the context of an enclosing conjunction, i.e. and_(x, or_()) will produce 'X' and not 'X AND ()'. [ticket:2257].
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 829adebac..2741a853f 100644
--- a/lib/sqlalchemy/sql/compiler.py
+++ b/lib/sqlalchemy/sql/compiler.py
@@ -445,7 +445,7 @@ class SQLCompiler(engine.Compiled):
s for s in
(c._compiler_dispatch(self, **kwargs)
for c in clauselist.clauses)
- if s is not None)
+ if s)
def visit_case(self, clause, **kwargs):
x = "CASE "