]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Remove erroneous assertion from array._bind_param
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 26 Aug 2019 13:45:06 +0000 (09:45 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 26 Aug 2019 13:51:30 +0000 (09:51 -0400)
commitccf079a89d8c86357f934e70d37c70a9a9b0ed11
treea26ce91f553ade616f9965f1d5c926f9600ef479
parented4b85c40c5c016240a228ab810f364322d7bdaf
Remove erroneous assertion from array._bind_param

Fixed bug where Postgresql operators such as
:meth:`.postgresql.ARRAY.Comparator.contains` and
:meth:`.postgresql.ARRAY.Comparator.contained_by` would fail to function
correctly for non-integer values when used against a
:class:`.postgresql.array` object, due to an erroneous assert statement.

Fixes: #4822
Change-Id: I886aca4c86dc7d64e9d0dfc1d910a0ae64d775a1
(cherry picked from commit 4b5d162ed028558ac38c687d69f26ce93741789d)
doc/build/changelog/unreleased_13/4822.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/array.py
test/dialect/postgresql/test_compiler.py