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

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.1.1
    • 2.2.0
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: