Skip to content

context cancellation closes the connection immediately, making it impossible to rollback the transaction #1738

@acwest

Description

@acwest

If I have a transaction that has been started with BeginTx, rows are added to a table using insert statements, and then the context passed in to BeginTx is cancelled, the connection is closed immediately, making it impossible to roll back the transaction, and the rows are commited.
The expected behaviour would be to automatically roll back an interrupted transaction, or at least allow the user to do so.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions