]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Allow NUMERIC()/DECIMAL() IDENTITY columns
authorGord Thompson <gord@gordthompson.com>
Tue, 14 Jun 2022 16:09:04 +0000 (10:09 -0600)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 18 Jun 2022 18:00:12 +0000 (14:00 -0400)
commitc0de2ec4af9c03ca9f6c82921e94af66b9c753e2
treec82c1321c0b95567b3e0e5350e6ece63eec6b03a
parentf4330ef0c68017116aa3c0f5d194c1ae66d1c7b1
Allow NUMERIC()/DECIMAL() IDENTITY columns

Fixed issue where :class:`.Table` objects that made use of IDENTITY columns
with a :class:`.Numeric` datatype would produce errors when attempting to
reconcile the "autoincrement" column, preventing construction of the
:class:`.Column` from using the :paramref:`.Column.autoincrement` parameter
as well as emitting errors when attempting to invoke an :class:`.Insert`
construct.

Fixes: #8111
Change-Id: Iaacc4eebfbafb42fa18f9a1a4f43cb2b6b91d28a
(cherry picked from commit a134956c4e4564844c33302ddf27a70102fe00a8)
doc/build/changelog/unreleased_14/8111.rst [new file with mode: 0644]
lib/sqlalchemy/sql/schema.py
lib/sqlalchemy/sql/sqltypes.py
lib/sqlalchemy/sql/type_api.py
test/dialect/mssql/test_query.py