diff options
| author | Simon Charette <charette.s@gmail.com> | 2023-02-26 13:43:00 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-02-27 09:46:30 +0100 |
| commit | fc15d11f2eb26fe3d5c946e69223880bfe53e92b (patch) | |
| tree | 03fdf5684c941cb27f1b2cdc6348a399d747325c /django/db/models/sql | |
| parent | 872dade29c8a4b9e82920a85c698fcef8ed332ee (diff) | |
[4.2.x] Fixed #34368 -- Made subquery raise NotSupportedError when referencing outer window expression.
Regression in f387d024fc75569d2a4a338bfda76cc2f328f627.
Co-authored-by: Jannis Vajen <jvajen@gmail.com>
Backport of c67ea79aa981ae82595d89f8018a41fcd842e7c9 from main
Diffstat (limited to 'django/db/models/sql')
| -rw-r--r-- | django/db/models/sql/compiler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/sql/compiler.py b/django/db/models/sql/compiler.py index 1faed5c416..1c16217ae7 100644 --- a/django/db/models/sql/compiler.py +++ b/django/db/models/sql/compiler.py @@ -676,7 +676,7 @@ class SQLCompiler: ) ) inner_query_compiler = inner_query.get_compiler( - self.using, elide_empty=self.elide_empty + self.using, connection=self.connection, elide_empty=self.elide_empty ) inner_sql, inner_params = inner_query_compiler.as_sql( # The limits must be applied to the outer query to avoid pruning |
