Refs #3254 -- Removed unnecessary truth check in SearchVectorExact.as_sql().

Direct usage of the @@ operator is perfectly allowed.
This commit is contained in:
Simon Charette 2020-02-24 23:10:50 -05:00 committed by Mariusz Felisiak
parent 5b09354954
commit 3d62ddb026
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ class SearchVectorExact(Lookup):
lhs, lhs_params = self.process_lhs(qn, connection) lhs, lhs_params = self.process_lhs(qn, connection)
rhs, rhs_params = self.process_rhs(qn, connection) rhs, rhs_params = self.process_rhs(qn, connection)
params = lhs_params + rhs_params params = lhs_params + rhs_params
return '%s @@ %s = true' % (lhs, rhs), params return '%s @@ %s' % (lhs, rhs), params
class SearchVectorField(Field): class SearchVectorField(Field):