]> 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:37 +0000 (23:22 -0400)
commite3f7bc683ac3ea6d7c517b9c7ffeaa911860d732
tree392966606e3c102ac0eed52ca219ee600bc38461
parentbc8575bf29bb5c9588f5873c13b4470cdf184c5a
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
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