]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Enforce boolean result type for all eq_, is_, isnot, comparison
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 27 Apr 2017 14:26:10 +0000 (10:26 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 27 Apr 2017 20:08:02 +0000 (16:08 -0400)
commit433d2ee9f14a028399e848f3552a1a71f223c976
tree09d891438679797eaab358ccd866589ca372a831
parent1b63306a973f13588216fbb097b6dffb4a5c4c63
Enforce boolean result type for all eq_, is_, isnot, comparison

Repaired issue where the type of an expression that used
:meth:`.ColumnOperators.is_` or similar would not be a "boolean" type,
instead the type would be "nulltype", as well as when using custom
comparison operators against an untyped expression.   This typing can
impact how the expression behaves in larger contexts as well as
in result-row-handling.

Change-Id: Ib810ff686de500d8db26ae35a51005fab29603b6
Fixes: #3873
doc/build/changelog/changelog_12.rst
lib/sqlalchemy/sql/default_comparator.py
lib/sqlalchemy/sql/operators.py
lib/sqlalchemy/sql/sqltypes.py
test/sql/test_operators.py