]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add option to disable from linting for table valued function
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 23 Mar 2022 14:07:13 +0000 (10:07 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 23 Mar 2022 14:26:12 +0000 (10:26 -0400)
commit04dcc5c704dbf0b22705523e263e512c24936175
tree646f90741239bb76e584d28382ef96f1fa255ccb
parent6652c62bd90a455843c77f41acd50af920126351
Add option to disable from linting for table valued function

Added new parameter
:paramref:`.FunctionElement.table_valued.joins_implicitly`, for the
:meth:`.FunctionElement.table_valued` construct. This parameter indicates
that the given table-valued function implicitly joins to the table it
refers towards, essentially disabling the "from linting" feature, i.e. the
"cartesian product" warning, from taking effect due to the presence of this
parameter. May be used for functions such as ``func.json_each()``.

Fixes: #7845
Change-Id: I80edcb74efbd4417172132c0db4d9c756fdd5eae
doc/build/changelog/unreleased_14/7845.rst [new file with mode: 0644]
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/functions.py
lib/sqlalchemy/sql/selectable.py
test/sql/test_from_linter.py