]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
dont assume _compile_options are present
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 17 Apr 2023 14:16:35 +0000 (10:16 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 17 Apr 2023 14:20:33 +0000 (10:20 -0400)
commit89608ccd3f5e5796d578e9a39201f7c5c45a61fe
tree7ab7811b5d233fc7f4433d8bdc6ee84d237e1537
parentacf7fbd60b9b1291dfc91438416867c88e94c5ba
dont assume _compile_options are present

Fixed bug where various ORM-specific getters such as
:attr:`.ORMExecuteState.is_column_load`,
:attr:`.ORMExecuteState.is_relationship_load`,
:attr:`.ORMExecuteState.loader_strategy_path` etc. would throw an
``AttributeError`` if the SQL statement itself were a "compound select"
such as a UNION.

Fixes: #9634
Change-Id: Ia37df5d6f89d6534d69237dcab294bd849ece28b
doc/build/changelog/unreleased_14/9634.rst [new file with mode: 0644]
lib/sqlalchemy/orm/session.py
test/orm/test_events.py