]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
use bindparam_type in BinaryElementImpl._post_coercion if available
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 1 May 2022 16:28:36 +0000 (12:28 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 1 May 2022 16:28:36 +0000 (12:28 -0400)
commit889cbe53121c8fd50c845357dd52b24594346b68
treeeedc2ff066254e9f8f6ab88c62d36fc128f5f9da
parent724d33f3816b1460e8c89e73688235a3e31d8445
use bindparam_type in BinaryElementImpl._post_coercion if available

Fixed an issue where using :func:`.bindparam` with no explicit data or type
given could be coerced into the incorrect type when used in expressions
such as when using :meth:`.ARRAY.comparator.any` and
:meth:`.ARRAY.comparator.all`.

Fixes: #7979
Change-Id: If7779e713c9a3a5fee496b66e417cfd3fca5b1f9
doc/build/changelog/unreleased_14/7979.rst [new file with mode: 0644]
lib/sqlalchemy/sql/coercions.py
test/sql/test_operators.py