You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Mark Thomas (JIRA)" <ji...@apache.org> on 2016/03/17 15:20:33 UTC

[jira] [Resolved] (DBCP-455) Even if the cacheState is false, the getAutoCommit and isReadOnly method always return cached value

     [ https://issues.apache.org/jira/browse/DBCP-455?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Thomas resolved DBCP-455.
------------------------------
       Resolution: Fixed
    Fix Version/s: 2.2

Thanks for the patches.

> Even if the cacheState is false, the getAutoCommit and isReadOnly method always return cached value
> ---------------------------------------------------------------------------------------------------
>
>                 Key: DBCP-455
>                 URL: https://issues.apache.org/jira/browse/DBCP-455
>             Project: Commons Dbcp
>          Issue Type: Bug
>    Affects Versions: 2.1.1
>            Reporter: Kyohei Nakamura
>            Priority: Minor
>             Fix For: 2.2
>
>         Attachments: PoolableConnectionFactory.java.patch, PoolableManagedConnectionFactory.java.patch
>
>
> Even if the cacheState is false, the getAutoCommit and isReadOnly method always return cached value when the poolPreparedStatements is false.
> In my analytics, the cacheState is set to the PoolingConnection but is not set to the PoolableConnetcion.
> Therefore, the PoolableConnetcion always enable caching.
> The PoolableConnetcion should be set the cacheState.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)