diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-04-14 12:01:16 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-04-14 12:01:16 -0400 |
commit | 4f96c12db923624204110e56ce730f5aafbb9463 (patch) | |
tree | dff198806942969feb4ea491256704985c5b0210 /lib/sqlalchemy/sql/compiler.py | |
parent | 3d300066e8b20a89e0b82bf09dd0c4016f5f8e51 (diff) | |
download | sqlalchemy-4f96c12db923624204110e56ce730f5aafbb9463.tar.gz |
Ensure ORMInsert sets up bind state
Fixed regression where the change in #7861, released in version 1.4.33,
that brought the :class:`.Insert` construct to be partially recognized as
an ORM-enabled statement did not properly transfer the correct mapper /
mapped table state to the :class:`.Session`, causing the
:meth:`.Session.get_bind` method to fail for a :class:`.Session` that was
bound to engines and/or connections using the :paramref:`.Session.binds`
parameter.
Fixes: #7936
Change-Id: If19edef8e2dd68335465429eb3d2f0bfdade4a4c
Diffstat (limited to 'lib/sqlalchemy/sql/compiler.py')
0 files changed, 0 insertions, 0 deletions