]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
pass along independent CTE attributes in ORM context
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 31 Jul 2023 15:17:20 +0000 (11:17 -0400)
committermike bayer <mike_mp@zzzcomputing.com>
Mon, 31 Jul 2023 21:01:06 +0000 (21:01 +0000)
commita8b37e8802a754c39999024d00f5acf6ba5bffa6
tree0ba764d53ab5d3067403a76329c3ff8f654b5913
parent19da1e2cfb59ad91c930b627a1facd14d14bd023
pass along independent CTE attributes in ORM context

Fixed issue where an ORM-enabled :func:`_sql.select` construct would not
render any CTEs added only via the :meth:`_sql.Select.add_cte` method that
were not otherwise referenced in the statement.

Fixes: #10167
Change-Id: Ib13f478607628b02742e6026e94bce54b089627d
doc/build/changelog/unreleased_20/10167.rst [new file with mode: 0644]
lib/sqlalchemy/orm/context.py
test/orm/test_core_compilation.py