From 845042b3d9faaefef8855c2bab48bd9532cd00ca Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Mon, 2 Dec 2019 13:58:41 +0100 Subject: [PATCH] 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. --- tests/custom_lookups/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/custom_lookups/tests.py b/tests/custom_lookups/tests.py index 5c9ee5c5ef..14f95a241b 100644 --- a/tests/custom_lookups/tests.py +++ b/tests/custom_lookups/tests.py @@ -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):