mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Refs #25705 -- Fixed invalid SQL generated by SQLFuncMixin.as_sql() in custom_lookups tests.
Generated SQL was invalid because parameters are quoted by a driver.
This commit is contained in:
parent
a1f14ee3e5
commit
845042b3d9
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ class Exactly(models.lookups.Exact):
|
|||
|
||||
class SQLFuncMixin:
|
||||
def as_sql(self, compiler, connection):
|
||||
return '%s()', [self.name]
|
||||
return '%s()' % self.name, []
|
||||
|
||||
@property
|
||||
def output_field(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue