]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
fix handling of native enum aliases in sqlalchemy enum columns
authorDaniel Knell <contact@danielknell.co.uk>
Mon, 5 Feb 2018 14:25:47 +0000 (09:25 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 5 Feb 2018 14:27:27 +0000 (09:27 -0500)
commit2826484206b9211062d6228afea3f5d25ddc6030
tree3b0e6a0b0de42b0654af9db036380ec8402c004c
parent56ff3c5270b4393c1ae800756f3619583a0fb255
fix handling of native enum aliases in sqlalchemy enum columns

Fixed bug where the :class:`.Enum` type wouldn't handle
enum "aliases" correctly, when more than one key refers to the
same value.  Pull request courtesy Daniel Knell.

Fixes: #4180
Change-Id: Ia716c00ca6c67aeab56965f0fdd575ecb7c71416
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/420
doc/build/changelog/unreleased_12/4180.rst [new file with mode: 0644]
lib/sqlalchemy/sql/sqltypes.py
test/sql/test_types.py