diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-12-02 13:58:41 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-02 13:58:41 +0100 |
| commit | 845042b3d9faaefef8855c2bab48bd9532cd00ca (patch) | |
| tree | 3984582085b037aabe7eae6f53edfb96587ff10c | |
| parent | a1f14ee3e5a2160c2eef1dad58a1da11be4b1531 (diff) | |
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.
| -rw-r--r-- | tests/custom_lookups/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |
