Skip to content

Commit 2dbe884

Browse files
committed
Fix return type of IndexLookup.as_sql
1 parent 2a2f298 commit 2dbe884

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
@@ -234,7 +234,7 @@ def as_sql(
234234
) -> tuple[str, list[str | int]]:
235235
lhs, lhs_params = self.process_lhs(compiler, connection)
236236
rhs, rhs_params = self.process_rhs(compiler, connection)
237-
params = tuple(lhs_params) + tuple(rhs_params)
237+
params = list(lhs_params) + list(rhs_params)
238238
# Put rhs on the left since that's the order FIND_IN_SET uses
239239
return f"(FIND_IN_SET({rhs}, {lhs}) = {self.index})", params
240240

0 commit comments

Comments
 (0)