Skip to content
This repository was archived by the owner on Mar 18, 2026. It is now read-only.
This repository was archived by the owner on Mar 18, 2026. It is now read-only.

No rollback (autocommit=true ??) when error occurs during a script execution #26

@fcamblor

Description

@fcamblor

Hi there !

When I'm facing some errors during a script execution, I'm surprised that my DB is left "as is" at the point where the script failed ... whereas I can see in the code that a rollback should be supposed to happen.

Do you think I have something wrong configured somewhere ? (I looked for autocommit property in dbmaintain-default.properties but didn't found such config)

Looking more precisely on the code, I can see that both endTransactionAndCommit() and endTransactionAndRollback() call a reenableAutoCommit() in the finally{ .. } statement, no matter if autocommit was enabled (or not) at the beginning of the transaction.

Wouldn't it be a bug ?

Kind regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions