You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/01/29 22:03:05 UTC

DO NOT REPLY [Bug 24136] - ClassCastException in DriverAdapterCPDS when setPoolPreparedStatements(true)

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