]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Convert expression type for concat + Enum
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 20 Oct 2016 19:59:46 +0000 (15:59 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 20 Oct 2016 19:59:46 +0000 (15:59 -0400)
commitc97b1b82282553d42e5893a094926602b0a2406d
tree769eac8dff3690536e8511ff80493239626056f0
parent30bd28fca2091e4b2b093154a14c668c09ae3ccd
Convert expression type for concat + Enum

Fixed bug involving new value translation and validation feature
in :class:`.Enum` whereby using the enum object in a string
concatenation would maintain the :class:`.Enum` type as the type
of the expression overall, producing missing lookups.  A string
concatenation against an :class:`.Enum`-typed column now uses
:class:`.String` as the datatype of the expression itself.

Change-Id: Id402054e3ef008e0250c740dbb7e1c80f339fe78
Fixes: #3833
doc/build/changelog/changelog_11.rst
lib/sqlalchemy/sql/sqltypes.py
test/sql/test_types.py