]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Provided a new attribute for :class:`.TypeDecorator`
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 22 Jun 2013 16:19:41 +0000 (12:19 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 22 Jun 2013 16:20:20 +0000 (12:20 -0400)
commitaa5cc5a2cca1131af7925f5bec1745571bfd5736
tree2b01fe0840dcd50eea910ce5d541267c03da0cc3
parent6bdeab2e4ccb0790882ece3f42ba370211658168
Provided a new attribute for :class:`.TypeDecorator`
called :attr:`.TypeDecorator.coerce_to_is_types`,
to make it easier to control how comparisons using
``==`` or ``!=`` to ``None`` and boolean types goes
about producing an ``IS`` expression, or a plain
equality expression with a bound parameter.
[ticket:2744]

Conflicts:
doc/build/changelog/changelog_09.rst
doc/build/changelog/changelog_08.rst
lib/sqlalchemy/sql/expression.py
lib/sqlalchemy/types.py
test/sql/test_types.py