- Notifications
You must be signed in to change notification settings - Fork54
Open
Description
Doesn't work:
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
Metadata
Metadata
Assignees
Labels
No labels