]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Track a second from_linter for lateral subqueries
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 5 Feb 2021 18:38:28 +0000 (13:38 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 5 Feb 2021 18:54:37 +0000 (13:54 -0500)
commitbc9221bf781adfffdddf12860d4eed7650457a0a
tree83992d60fb056610cd29660a71a0284b74150785
parentac1228a87290aca4aa64cec27e640817be932feb
Track a second from_linter for lateral subqueries

Fixed bug where the "cartesian product" assertion was not correctly
accommodating for joins between tables that relied upon the use of LATERAL
to connect from a subquery to another subquery in the enclosing context.

Additionally, enabled from_linting for the base assert_compile(),
however it remains off by default; to enable by default we would
have to make sure it isn't set for DDL compiles and there's also
a lot of tests that would also need to turn it off, so leaving
this off for expediency.

Fixes: #5924
Change-Id: I22604baf572f8c4d96befcc610b3dcb79c13fc4a
doc/build/changelog/unreleased_14/5924.rst [new file with mode: 0644]
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/testing/assertions.py
test/sql/test_from_linter.py
test/sql/test_lateral.py