[Sqlalchemy-commits] commit/sqlalchemy: zzzeek: Don't set pg autoincrement if type affinity is not
Brought to you by:
zzzeek
From: Bitbucket <com...@bi...> - 2016-10-21 14:42:39
|
1 new commit in sqlalchemy: https://bitbucket.org/zzzeek/sqlalchemy/commits/232eec47d139/ Changeset: 232eec47d139 Branch: master User: zzzeek Date: 2016-10-20 21:38:22+00:00 Summary: Don't set pg autoincrement if type affinity is not Integer Postgresql table reflection will ensure that the :paramref:`.Column.autoincrement` flag is set to False when reflecting a primary key column that is not of an :class:`.Integer` datatype, even if the default is related to an integer-generating sequence. This can happen if a column is created as SERIAL and the datatype is changed. The autoincrement flag can only be True if the datatype is of integer affinity in the 1.1 series. This bug is related to a test failure in downstream sqlalchemy_migrate. Change-Id: I40260e47e1927a1ac940538408983c943bbdba28 Fixes: #3835 Affected #: 3 files Repository URL: https://bitbucket.org/zzzeek/sqlalchemy/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. |