Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
1.1
-
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
Attachments
Issue Links
- is part of
-
DBCP-175 [dbcp] I'd like to run init SQL after JDBC Connection creation in Tomcat DBCP
- Closed