commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 24136] - ClassCastException in DriverAdapterCPDS when setPoolPreparedStatements(true)
Date Thu, 29 Jan 2004 21:03:05 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24136>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24136

ClassCastException in DriverAdapterCPDS when setPoolPreparedStatements(true)





------- Additional Comments From toddc@concur.com  2004-01-29 21:03 -------
I think this could be easily fixed by changing the following line in the
constructor of PoolablePreparedStatement

It used to be:

    public PoolablePreparedStatement(PreparedStatement stmt, Object key,
KeyedObjectPool pool, Connection conn) {
        super((DelegatingConnection)conn, stmt);

Should be

    public PoolablePreparedStatement(PreparedStatement stmt, Object key,
KeyedObjectPool pool, Connection conn) {
        super(new DelegatingConnection(conn), stmt);

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message