Steeve Beroard created DBCP-405:
-----------------------------------

             Summary: getAutoCommit in PoolableConnectionFactory
                 Key: DBCP-405
                 URL: https://issues.apache.org/jira/browse/DBCP-405
             Project: Commons Dbcp
          Issue Type: Improvement
            Reporter: Steeve Beroard
            Priority: Trivial


In passivateObject() method of PoolableConnectionFactory, getAutoCommit() is 
called twice. I am working with Sybase JDBC driver, in their implementation, 
getAutoCommit() makes a call to database so there are two roundtrips to 
database. I would like to understand if there is anything that prevent you to 
call getAutoCommit() once and store the result in a local variable to use it 
again?



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to