]> 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:51:48 +0000 (16:51 -0400)
commit421fa6b8bf9f0c3c5041579c89ec405ce0f5e0b0
tree292fe3b6845fe2b8c25854d9016e62143e05c0ce
parent849df799ec4107d0992c8eb0e015b74916aee266
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
doc/build/changelog/changelog_10.rst
lib/sqlalchemy/dialects/postgresql/base.py
test/dialect/postgresql/test_dialect.py