go-gorm / playground

GORM Playground (Please Create PR for this project to report issues)
MIT License
88 stars 666 forks source link

bug: when using OnConflict for batch insertion, the returned ID is incorrect #737

Open jpbirdy opened 2 months ago

jpbirdy commented 2 months ago

The bug here is that when using OnConflict{UpdateAll: true} for batch insertion, if there is an update, the returned ID is incorrect

jpbirdy commented 2 months ago

Because gorm.io/gen has been upgraded to v0.3.26, when executing go get -u -t ./..., gorm.io/gen will be updated, which will cause an error: gorm.io/gen/examples/dal: cannot find module providing package gorm.io/gen/examples/dal

The test script can run and report errors in v0.3.25