]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Fixed issue where inadvertent use of the Python ``__contains__``
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 2 Feb 2016 15:15:40 +0000 (10:15 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 2 Feb 2016 15:20:54 +0000 (10:20 -0500)
commite0a580b3d055a600afae61840058a5a30ef5fe74
tree592356800f2b452028bae1f91ffcffad8157aa87
parentc8b3d4ed3f2638599fc73486cf0f724fa033a638
- Fixed issue where inadvertent use of the Python ``__contains__``
override with a column expression (e.g. by using ``'x' in col``)
would cause an endless loop in the case of an ARRAY type, as Python
defers this to ``__getitem__`` access which never raises for this
type.  Overall, all use of ``__contains__`` now raises
NotImplementedError.
fixes #3642
doc/build/changelog/changelog_10.rst
lib/sqlalchemy/sql/default_comparator.py
lib/sqlalchemy/sql/operators.py
test/dialect/postgresql/test_types.py
test/sql/test_operators.py