]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Exclude eq and ne from associative operators
authorJohn Passaro <john.a.passaro@gmail.com>
Mon, 19 Sep 2016 19:43:46 +0000 (15:43 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 19 Sep 2016 21:17:07 +0000 (17:17 -0400)
commit2c4119d1eb9e231676bf4facedf46849970b8253
treeafadbb6920ecf219965713dc27b0202e83ec3989
parent881369b949cff44e0017fdc28d9722ef3c26171a
Exclude eq and ne from associative operators

The "eq" and "ne" operators are no longer part of the list of
"associative" operators, while they remain considered to be
"commutative".  This allows an expression like ``(x == y) == z``
to be maintained at the SQL level with parenthesis.  Pull request
courtesy John Passaro.

Fixes: #3799
Change-Id: I3759d8987b35649d7418b6524316c9e70c857e68
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/308
doc/build/changelog/changelog_11.rst
lib/sqlalchemy/sql/operators.py
test/sql/test_operators.py