]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add identifier_preparer per-execution context for schema translates
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 8 Feb 2021 16:58:15 +0000 (11:58 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 8 Feb 2021 18:16:02 +0000 (13:16 -0500)
commitb348e82dcf5eca1fc8496c941dc1ac2ffd60eed9
treef95e6a111f14b7517a3cb0b0e7b42b9a6487217a
parent146efafcb436660e7891d3b34d05cd794c45268d
Add identifier_preparer per-execution context for schema translates

Fixed bug where the "schema_translate_map" feature failed to be taken into
account for the use case of direct execution of
:class:`_schema.DefaultGenerator` objects such as sequences, which included
the case where they were "pre-executed" in order to generate primary key
values when implicit_returning was disabled.

Fixes: #5929
Change-Id: I3fed1d0af28be5ce9c9bb572524dcc8411633f60
(cherry picked from commit 2385ebb19366efeb35415298166ac18668864c51)
doc/build/changelog/unreleased_13/5929.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/firebird/base.py
lib/sqlalchemy/dialects/mssql/base.py
lib/sqlalchemy/dialects/mysql/base.py
lib/sqlalchemy/dialects/oracle/base.py
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/engine/default.py
lib/sqlalchemy/testing/suite/test_sequence.py
lib/sqlalchemy/util/compat.py