]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
accommodate schema_translate_map in _deliver_insertmanyvalues_batches
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 13 Mar 2024 22:23:07 +0000 (18:23 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 14 Mar 2024 03:22:44 +0000 (23:22 -0400)
commitc4aac18d0fca55b1be5071ae74d4eeebc05f6d7d
tree86b4d88cbba744803d920ae6d1d74b9b3e22598e
parent7febd6f40325732340bd2a809b393d422e56727d
accommodate schema_translate_map in _deliver_insertmanyvalues_batches

Fixed issue in :ref:`engine_insertmanyvalues` feature where using a primary
key column with an "inline execute" default generator such as an explicit
:class:`.Sequence` with an explcit schema name, while at the same time
using the
:paramref:`_engine.Connection.execution_options.schema_translate_map`
feature would fail to render the sequence or the parameters properly,
leading to errors.

Fixes: #11157
Change-Id: I35666af46d40996aff35d3d39f48c150d838e6e4
(cherry picked from commit e3f7bc683ac3ea6d7c517b9c7ffeaa911860d732)
doc/build/changelog/unreleased_20/11157.rst [new file with mode: 0644]
lib/sqlalchemy/engine/default.py
lib/sqlalchemy/sql/compiler.py
test/sql/test_insert_exec.py