You signed in with another tab or window.Reloadto refresh your session.You signed out in another tab or window.Reloadto refresh your session.You switched accounts on another tab or window.Reloadto refresh your session.Dismiss alert
I am using gorm's AutoUpdateTime in my struct against a time field. I am using BulkUpsert operation to update an entity but the time stamp is not getting updated.
Here is the field -LastUpdateDate time.Timegorm: "<-:update;autoUpdateTime" ``
Here is the query -gormInstance.BulkUpsert(ctx, tx, &groupEnrolmentEntries, gorm_models.GetGroupEnrolment().TableName(), clause.OnConflict{ Columns: []clause.Column{{Name: "group_id" }, {Name: "user_id" }}, UpdateAll: true, })
Expected answer
The text was updated successfully, but these errors were encountered:
Your Question
I am using gorm's AutoUpdateTime in my struct against a time field. I am using BulkUpsert operation to update an entity but the time stamp is not getting updated.
Here is the field -
LastUpdateDate time.Time
gorm: "<-:update;autoUpdateTime" ``Here is the query -
gormInstance.BulkUpsert(ctx, tx, &groupEnrolmentEntries, gorm_models.GetGroupEnrolment().TableName(), clause.OnConflict{ Columns: []clause.Column{{Name: "group_id" }, {Name: "user_id" }}, UpdateAll: true, })
Expected answer
The text was updated successfully, but these errors were encountered: