Skip to content

before_commit_from_insert actually issues UPDATE command following the INSERT command #2

@mmangione

Description

@mmangione

It would seem to me if the before_commit_from_insert command is used we should be operating on an object pre-commit, then committing it. So, that would be equivalent to operating on the object, making updates, the inserting the updated object through the INSERT command. That is not what is happening. The INSERT command is putting the object in the database and then an UPDATE command is issued with the updated content from the before_commit_from_insert command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions