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

[dbcp] initializationStatement and destructionStatement in PoolableConnectionFactory

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 1.1
    • 1.3
    • None
    • Operating System: All
      Platform: All

    • 25696

    Description

      proposal & patch from Brent Verner (slightly edited)
      -----------------------------------------------------
      I've often had the need to perform some setup of a connection
      before it can be used, such as:

      ALTER SESSION SET current_schema = workable_schema;

      As such, I've had a hacked version of dbcp around for a while
      that adds an initializationStatement and destructionStatement.
      Both are fed thru the Statement.execute(String) method, and
      nothing is done with any (possible) ResultSet from the query.
      These statements are executed in the makeObject() and destroyObject() methods of
      PoolableConnectionFactory.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dirkv Dirk Verbeeck
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: