]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add new parameters for IDENTITY start/increment in mssql
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 11 Nov 2018 02:36:18 +0000 (21:36 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 14 Nov 2018 22:34:52 +0000 (17:34 -0500)
commit6629d9f89273eda53a578cce41af6c79135254c7
tree7b7b1bb7258aea33592284a2d02fb987f7f0b722
parentab1e6fb08f7cfbba94f0115368f08f6130bf0018
Add new parameters for IDENTITY start/increment in mssql

Deprecated the use of :class:`.Sequence` with SQL Server in order to affect
the "start" and "increment" of the IDENTITY value, in favor of new
parameters ``mssql_identity_start`` and ``mssql_identity_increment`` which
set these parameters directly.  :class:`.Sequence` will be used to generate
real ``CREATE SEQUENCE`` DDL with SQL Server in a future release.

Fixes: #4362
Change-Id: I1e69378c5c960ff0bc28137c923589692f1a918f
doc/build/changelog/migration_13.rst
doc/build/changelog/unreleased_13/4362.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mssql/base.py
lib/sqlalchemy/engine/reflection.py
test/dialect/mssql/test_compiler.py
test/dialect/mssql/test_query.py
test/dialect/mssql/test_reflection.py