Skip to content

Commit

Permalink
Fix return type of IndexLookup.as_sql
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchainz committed Oct 19, 2022
1 parent cae3ff9 commit dd42922
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/django_mysql/models/fields/lists.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def as_sql(
) -> tuple[str, list[str | int]]:
lhs, lhs_params = self.process_lhs(compiler, connection)
rhs, rhs_params = self.process_rhs(compiler, connection)
params = tuple(lhs_params) + tuple(rhs_params)
params = list(lhs_params) + list(rhs_params)
# Put rhs on the left since that's the order FIND_IN_SET uses
return f"(FIND_IN_SET({rhs}, {lhs}) = {self.index})", params

Expand Down

0 comments on commit dd42922

Please sign in to comment.