]> 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:29:29 +0000 (12:29 -0400)
commit55ac391ef92a46556c1579899feef051296acd4b
treecdcc0f9148a999ca9864e6ecd8c04e77cb9f36fa
parent79db8212262eba52b76bb3247c5b9e5b5b1bb89e
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
(cherry picked from commit 889cbe53121c8fd50c845357dd52b24594346b68)
doc/build/changelog/unreleased_14/7979.rst [new file with mode: 0644]
lib/sqlalchemy/sql/coercions.py
test/sql/test_operators.py