Skip to content

Allow skipping setAutoCommit() call in JdbcTransaction #2426

Closed
@katsumiy

Description

@katsumiy

Why resetAutoCommit() in close is necessary?

When connection is newly created or popped from pool, setDesiredAutoCommit is called and AutoCommit is set to desired state, anyway.
When connection is not pooled and really closed, resetting AutoCommit appears to be useless. Because it's going to be closed.
So in both pooled and non pooled case, resetAutoCommit appears to be useless.
And setting when popped and resetting when pushed, it exec “SET AUTOCOMMIT” and it’s taking some time to process.
Shouldn't resetAutoCommit in close be removed?

Metadata

Metadata

Assignees

Labels

enhancementImprove a feature or add a new feature

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions