Skip to content

Commit dd2c058

Browse files
committed
Fix return type of IndexLookup.as_sql
1 parent 1ce99b7 commit dd2c058

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

0 commit comments

Comments
 (0)