You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val=dynamic(^["abc","def"])cond=dynamic([a],a.colin^val)query=fromain"table",where: ^cond,select: a.col{sql,x}=Repo.to_sql(:all,query)# sql = SELECT t0."col" FROM "table" AS t0 WHERE (t0."col" IN (?,?))# x = [["abc", "def"]]
Works:
cond=dynamic([a],a.colin^["abc","def"])query=fromain"table",where: ^cond,select: a.col{sql,x}=Repo.to_sql(:all,query)# sql = SELECT t0."col" FROM "table" AS t0 WHERE (t0."col" IN (?,?))# x = ["abc", "def"]
Looks like there's some place flattening out the parameters, which doesn't catch the dynamic case
The text was updated successfully, but these errors were encountered:
Doesn't work:
Works:
Looks like there's some place flattening out the parameters, which doesn't catch the dynamic case
The text was updated successfully, but these errors were encountered: