Uploaded image for project: 'Commons DBCP'
  1. Commons DBCP
  2. DBCP-455

Even if the cacheState is false, the getAutoCommit and isReadOnly method always return cached value

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.1
    • Fix Version/s: 2.2.0
    • Labels:
      None

      Description

      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.

        Attachments

        1. PoolableManagedConnectionFactory.java.patch
          0.9 kB
          Kyohei Nakamura
        2. PoolableConnectionFactory.java.patch
          0.6 kB
          Kyohei Nakamura

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Kyohei Nakamura Kyohei Nakamura
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: