]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
support functions "as binary comparison"
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 9 Jul 2018 19:47:14 +0000 (15:47 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 10 Jul 2018 01:48:39 +0000 (21:48 -0400)
commitf7076ecf361f276f5ddb81f80931e5c88215e8ca
treef292ec5013c94defbaa4c05cc957cb751e28a412
parent9d743870722fc6757404674bd821382798a1ba43
support functions "as binary comparison"

Added new feature :meth:`.FunctionElement.as_comparison` which allows a SQL
function to act as a binary comparison operation that can work within the
ORM.

Change-Id: I07018e2065d09775c0406cabdd35fc38cc0da699
Fixes: #3831
doc/build/changelog/migration_13.rst
doc/build/changelog/unreleased_13/3831.rst [new file with mode: 0644]
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/functions.py
lib/sqlalchemy/sql/operators.py
test/orm/test_relationships.py
test/sql/test_functions.py