]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- The precedence rules for the :meth:`.ColumnOperators.collate` operator
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 6 Dec 2013 00:03:31 +0000 (19:03 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 6 Dec 2013 00:03:31 +0000 (19:03 -0500)
commitb653fb3a23a0388814d9ab79b884d64d396baff1
treeba0eb6017e0035b8726da13e617a16562fae4b2f
parent3621e4b8de9124ad4f27d77c3c6cb7470ba31e69
- The precedence rules for the :meth:`.ColumnOperators.collate` operator
have been modified, such that the COLLATE operator is now of lower
precedence than the comparison operators.  This has the effect that
a COLLATE applied to a comparison will not render parenthesis
around the comparison, which is not parsed by backends such as
MSSQL.  The change is backwards incompatible for those setups that
were working around the issue by applying :meth:`.Operators.collate`
to an individual element of the comparison expression,
rather than the comparison expression as a whole. [ticket:2879]
doc/build/changelog/changelog_09.rst
doc/build/changelog/migration_09.rst
lib/sqlalchemy/sql/operators.py
test/sql/test_compiler.py
test/sql/test_operators.py