1
0
mirror of https://github.com/django/django.git synced 2025-01-03 06:55:47 +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:
Mariusz Felisiak 2019-12-02 13:58:41 +01:00 committed by GitHub
parent a1f14ee3e5
commit 845042b3d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,7 +133,7 @@ class Exactly(models.lookups.Exact):
class SQLFuncMixin: class SQLFuncMixin:
def as_sql(self, compiler, connection): def as_sql(self, compiler, connection):
return '%s()', [self.name] return '%s()' % self.name, []
@property @property
def output_field(self): def output_field(self):