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
INSERT INTO`accounts`(`user_id`, `number`, `id`)
VALUES (1, "My new account", 1)
ON CONFLICT ( `id` )
DO UPDATESET`user_id`=`excluded`.`user_id`,
`number`=`excluded`.`number`
RETURNING `id`
GORM Playground Link
go-gorm/playground#580
Description
I test the following on Postgres.
First I create the user with the nested account.
Then I pull the record of the user along with the nested account.
Then I modify the nested account and do an update to the user via Save()
I expect that the nested account to be updated. But it seems that ON CONFLICT DO UPDATE does not set the the relevant field.
The text was updated successfully, but these errors were encountered: