You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Phil Steitz (JIRA)" <ji...@apache.org> on 2009/09/12 23:57:57 UTC

[jira] Resolved: (DBCP-179) [dbcp] initializationStatement and destructionStatement in PoolableConnectionFactory

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

Phil Steitz resolved DBCP-179.
------------------------------

    Resolution: Won't Fix

Destruction use case / correct separation of concerns has not been established.  Initialization has been addressed in DBCP-175

> [dbcp] initializationStatement and destructionStatement in PoolableConnectionFactory
> ------------------------------------------------------------------------------------
>
>                 Key: DBCP-179
>                 URL: https://issues.apache.org/jira/browse/DBCP-179
>             Project: Commons Dbcp
>          Issue Type: Improvement
>    Affects Versions: 1.1
>         Environment: Operating System: All
> Platform: All
>            Reporter: Dirk Verbeeck
>            Priority: Minor
>             Fix For: 1.3
>
>         Attachments: pcf.diff
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.