]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Fixed operator precedence rules for multiple
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 25 Nov 2010 17:20:13 +0000 (12:20 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 25 Nov 2010 17:20:13 +0000 (12:20 -0500)
commit77f641429f019d06cc467ec4e57ae94f808d70bd
tree94ddacadb8915d19d3ee3cdf7a3771fa63ba0184
parent5247c244ca6595f2685f1c0c271618eda7cb5e62
- Fixed operator precedence rules for multiple
chains of a single non-associative operator.
I.e. "x - (y - z)" will compile as "x - (y - z)"
and not "x - y - z".  Also works with labels,
i.e. "x - (y - z).label('foo')"
[ticket:1984]
- Single element tuple expressions inside an IN clause
parenthesize correctly, also from [ticket:1984],
added tests for PG
- re-fix again importlater, [ticket:1983]
CHANGES
lib/sqlalchemy/sql/expression.py
lib/sqlalchemy/sql/operators.py
lib/sqlalchemy/util.py
test/base/test_utils.py
test/dialect/test_postgresql.py
test/sql/test_compiler.py