emacarron / mybatis

Automatically exported from code.google.com/p/mybatis
0 stars 0 forks source link

DataSources do not implement java.sql.Wrapper #141

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Why don't the MyBatis data sources (PooledDataSource and UnpooledDataSource) 
implement the java.sql.wrapper interfaces? We use Guice, and we would like to 
get at the underlying datasources to configure them. Sadly, even though the 
data sources could easily implement unwrap, they throw 
UnsupportedOperationException.

Am I missing something here? Why would the MyBatis data sources be implemented 
that way?

Robert Huffman

Original issue reported on code.google.com by robert.h...@gmail.com on 13 Oct 2010 at 6:31

GoogleCodeExporter commented 9 years ago
I was missing something: I thought the DataSource underlying the 
PooledDataSource would be one from our JDBC driver. That's not the case, of 
course, so there's really no reason to get to the underlying DataSource.

Original comment by robert.h...@gmail.com on 19 Oct 2010 at 5:47

GoogleCodeExporter commented 9 years ago
Looks like this is no longer an issue

Original comment by nathan.m...@gmail.com on 31 Dec 2010 at 1:45