summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/unitofwork.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2016-10-20 17:36:59 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2016-10-20 17:38:22 -0400
commit232eec47d13974e9c7bc7bafacba93ddbd59747d (patch)
treebe24dca93d7ea036208a55663b90174de106c181 /lib/sqlalchemy/orm/unitofwork.py
parent78f2864b90c9df03aaa2fdddb9fd7d394abdbc31 (diff)
downloadsqlalchemy-232eec47d13974e9c7bc7bafacba93ddbd59747d.tar.gz
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
Diffstat (limited to 'lib/sqlalchemy/orm/unitofwork.py')
0 files changed, 0 insertions, 0 deletions