mirror of
https://github.com/django/django.git
synced 2025-11-18 19:01:40 +00:00
Fixed #35972 -- Fixed lookup crashes after subquery annotations.
Some checks are pending
Docs / docs (push) Waiting to run
Docs / blacken-docs (push) Waiting to run
Linters / flake8 (push) Waiting to run
Linters / isort (push) Waiting to run
Linters / black (push) Waiting to run
Tests / Windows, SQLite, Python 3.13 (push) Waiting to run
Tests / JavaScript tests (push) Waiting to run
Some checks are pending
Docs / docs (push) Waiting to run
Docs / blacken-docs (push) Waiting to run
Linters / flake8 (push) Waiting to run
Linters / isort (push) Waiting to run
Linters / black (push) Waiting to run
Tests / Windows, SQLite, Python 3.13 (push) Waiting to run
Tests / JavaScript tests (push) Waiting to run
This commit is contained in:
parent
079d31e698
commit
8914f4703c
11 changed files with 128 additions and 23 deletions
|
|
@ -1202,6 +1202,8 @@ calling the appropriate methods on the wrapped expression.
|
|||
:meth:`~django.db.models.query.QuerySet.reverse()` is called on a
|
||||
queryset.
|
||||
|
||||
.. _writing-your-own-query-expressions:
|
||||
|
||||
Writing your own Query Expressions
|
||||
----------------------------------
|
||||
|
||||
|
|
@ -1262,7 +1264,7 @@ Next, we write the method responsible for generating the SQL::
|
|||
sql_params.extend(params)
|
||||
template = template or self.template
|
||||
data = {"expressions": ",".join(sql_expressions)}
|
||||
return template % data, sql_params
|
||||
return template % data, tuple(sql_params)
|
||||
|
||||
|
||||
def as_oracle(self, compiler, connection):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue