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
First of all, thanks for this fantastic lib, Jason! It has saved me countless hours in implementing database interfaces!
I recently came across a new(?) feature which allows a NamedExec to receive a slice of structs. This works beautifully with a simple INSERT statement, generating a VALUES (...), (...), (....) ... list.
However, it does not work with the Postgres INSERT INTO table VALUES (...) ON CONFLICT DO UPDATE SET column1 = :gofield1, column2 = :gofield2, ... type of statement, as the arguments for the latter part are not "multiplied out" for all slice elements, but only appended once to the args array.
The text was updated successfully, but these errors were encountered:
First of all, thanks for this fantastic lib, Jason! It has saved me countless hours in implementing database interfaces!
I recently came across a new(?) feature which allows a NamedExec to receive a slice of structs. This works beautifully with a simple INSERT statement, generating a
VALUES (...), (...), (....) ...
list.However, it does not work with the Postgres
INSERT INTO table VALUES (...) ON CONFLICT DO UPDATE SET column1 = :gofield1, column2 = :gofield2, ...
type of statement, as the arguments for the latter part are not "multiplied out" for all slice elements, but only appended once to the args array.The text was updated successfully, but these errors were encountered: