Skip to content

Is calling transaction supposed to set autocommit to false automatically? #71

Description

@nidu

Hello, i have a question about transactions.

Is wrapping code in transaction with query.transaction().in(() -> ...) supposed to automatically set autocommit to false? I noticed that my changes are not rolled back unless i do connection.setAutoCommit(false);. I'm creating connection with DriverManager.getConnection.

I had an expectation that wrapping code in a transaction turns off autocommit, but now i'm confused.

Thanks

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