[jboss-jira] [JBoss JIRA] (AG-93) Prevents calls to setAutoCommit that don't change the auto-commit state

Luis Barreiro (JIRA) issues at jboss.org
Mon Sep 10 00:30:00 EDT 2018


     [ https://issues.jboss.org/browse/AG-93?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luis Barreiro resolved AG-93.
-----------------------------
    Resolution: Done


> Prevents calls to setAutoCommit that don't change the auto-commit state 
> ------------------------------------------------------------------------
>
>                 Key: AG-93
>                 URL: https://issues.jboss.org/browse/AG-93
>             Project: Agroal
>          Issue Type: Bug
>          Components: pool
>    Affects Versions: 1.1
>            Reporter: Luis Barreiro
>            Assignee: Luis Barreiro
>             Fix For: 1.2
>
>
> Calls to setAutoCommit always set it as a dirty attribute, even if they don't effectively change auto-commit state. This will cause another call to setAutoCommit when returning the connection to the pool.
> Some drivers don't do well with calls to setAutoCommit when in transaction. This change will prevent those calls (as long as it's set to false in the configuration).



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list