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
for v in val {
dbg!(v);
separated
.push_unseparated(format!("insert into {} values (", #l))
.push_bind_unseparated(id)
.push_bind(v)
.push_unseparated("); ");
}
And here's the output
x.sql() = "insert into user_perms values ($1$2); insert into user_perms values ($3, $4); insert into user_perms values ($5, $6); "
I have no idea why the comma isn't getting inserted on the first loop but is on the others
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
This is my code
And here's the output
I have no idea why the comma isn't getting inserted on the first loop but is on the others
Beta Was this translation helpful? Give feedback.
All reactions