Yes, indeed, this is a bug in the driver. It had to be done with just
java.sql.Statement.

So it should have been

>             WeakReference r =
> (WeakReference)this.statementContainer.get(i);
>             Statement st = (Statement)o;
>              if (st != null){
>                  st.close();
>               }

Sorry for any inconvenience caused, and thanks for reporting this issue.

Regards

Alexander Schr�der
SAP DB, SAP Labs Berlin 

> -----Original Message-----
> From: Stoedtler, Mathias [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 09, 2004 11:34 AM
> To: [EMAIL PROTECTED]
> Subject: Bug in JDBC Driver?
> 
> 
> Hi,
>  
> When I'm trying to close a PooledConnectionSapDB I get a
> ClassCastException in close method. In the method close all the
> statements should be closed. But if I debug this cannot work, because
> the WeakReference in the statementContainer is of type
> ClientStatementSapDB.
>  
>             WeakReference r =
> (WeakReference)this.statementContainer.get(i);
>             StatementSapDB st = (StatementSapDB)o;
>              if (st != null){
>                  st.close();
>               }
>  
> I'm connecting this way:
>  
> ConnectionPoolDataSource = (ConnectionPoolDataSource) driver;
> PooledConnection ret = theSource.getPooledConnection();
>  
> Driver is: com.sap.dbtech.jdbcext.ConnectionPoolDataSourceSapDB
>  
> Is this a bug in the driver or am I doing something wrong?
>  
> Greets,
>   Mathias
> 

--
MaxDB Discussion Mailing List
For list archives: http://lists.mysql.com/maxdb
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to