Skip to content

UpdateColums inserts associations that are loaded into memory #7599

@Wouter12

Description

@Wouter12

GORM Playground Link

go-gorm/playground#832

Description

I am updating some columns in a model that has it's child associations loaded.

In another transaction that is running on another goroutine, i am hard deleting one of the child associations of the parent.
When the transaction that deletes the child association commits first, the UpdateColums method reinserts the deleted child row into the table.

I expect that UpdateColums only performs an update on those columns, and does not perform any operations outside of this model.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions