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

Prepared or Callable Statement are not cached in PoolingConnection.

    XMLWordPrintableJSON

    Details

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

      Description

      In PoolingConnection, the following methods are not defined.
      -prepareStatement(String sql, int[] columnIndexes)
      -prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
      -prepareStatement(String sql, String[] columnNames)
      -prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
      Therefore, when calling these methods, we can not cache statements.

      I fixed PoolingConnection and PStmtKey in order to cache all of Prepared and Callable Statement.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: