Skip to content

Commit dd42922

Browse files
committed
Fix return type of IndexLookup.as_sql
1 parent cae3ff9 commit dd42922

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/django_mysql/models/fields/lists.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def as_sql(
225225
) -> tuple[str, list[str | int]]:
226226
lhs, lhs_params = self.process_lhs(compiler, connection)
227227
rhs, rhs_params = self.process_rhs(compiler, connection)
228-
params = tuple(lhs_params) + tuple(rhs_params)
228+
params = list(lhs_params) + list(rhs_params)
229229
# Put rhs on the left since that's the order FIND_IN_SET uses
230230
return f"(FIND_IN_SET({rhs}, {lhs}) = {self.index})", params
231231

0 commit comments

Comments
 (0)