]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
apply render_schema_translates to identity insert directives
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 21 Jun 2021 22:13:55 +0000 (18:13 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 21 Jun 2021 22:13:55 +0000 (18:13 -0400)
commit3045c0c258a87a63a54fed8446c28ed4b376eca3
treed34e411ef6334b3c7338c49147ff216b59581b3c
parent8b8e3a6f9db275be28ef6b6abde58ee085745cc2
apply render_schema_translates to identity insert directives

Fixed bug where the "schema_translate_map" feature would fail to function
correctly in conjunction with an INSERT into a table that has an IDENTITY
column, where the value of the IDENTITY column were specified in the values
of the INSERT thus triggering SQLAlchemy's feature of setting IDENTITY
INSERT to "on"; it's in this directive where the schema translate map would
fail to be honored.

Fixes: #6658
Change-Id: I8235aa639dd465d038a2ad48e7a669f3e5c5c37c
doc/build/changelog/unreleased_14/6658.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mssql/base.py
test/dialect/mssql/test_query.py