mirror of
https://github.com/django/django.git
synced 2025-09-01 00:08:13 +00:00
Fixed #28848 -- Fixed SQLite/MySQL crash when ordering by a filtered subquery that uses nulls_first/nulls_last.
This commit is contained in:
parent
ad5f33ee03
commit
616f468760
3 changed files with 26 additions and 1 deletions
|
@ -1106,6 +1106,7 @@ class OrderBy(BaseExpression):
|
|||
}
|
||||
placeholders.update(extra_context)
|
||||
template = template or self.template
|
||||
params *= template.count('%(expression)s')
|
||||
return (template % placeholders).rstrip(), params
|
||||
|
||||
def as_sqlite(self, compiler, connection):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue