]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Repair PG BIGSERIAL w/ TypeDecorator, Variant
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 4 Jul 2016 20:37:26 +0000 (16:37 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 4 Jul 2016 20:54:01 +0000 (16:54 -0400)
commit428dfeee48c1fc4ceb5712b8934e90132ee57e33
tree3302a446ef026ffa995a471ec2fb8e88a1533198
parentf5ec60c8811feb92ded85f8a4f8c3071e44acddf
Repair PG BIGSERIAL w/ TypeDecorator, Variant

Some of the dialect impl memoization for TypeDecorator
necessarily keeps the top-level TypeDecorator type
around, since a user-defined type will have bind and result
set processing behavior.  For both TypeDecorator and Variant,
PG dialect needs to ensure it's looking at the SQLAlchemy
type to check for SmallInteger / BigInteger.

Fixes: 3739
Change-Id: I2d45fb997f17c6272d6bb826a77d2dba665adae7
(cherry picked from commit 421fa6b8bf9f0c3c5041579c89ec405ce0f5e0b0)
doc/build/changelog/changelog_10.rst
lib/sqlalchemy/dialects/postgresql/base.py
test/dialect/postgresql/test_dialect.py