Daniel John Debrunner wrote:
Julius.Stroffek wrote:
Daniel John Debrunner wrote:
I just added a utility method

JDBCDataSource.getDataSource(String dbName)

to obtain a connection to a different database, eg.

ds = JDBCDataSource.getDataSource("otherdb");
conn = ds.getConnection();

Would it be possible to create a test which passes some attributes to JDBC connection? I have not found anything related to this.

Once you have the DataSource for the database then you can set any attributes or DataSource properties you need.

JDBCDataSource.getDataSource(); // default database
JDBCDataSource.getDataSource("otherdb"); // specific database


Dan.

I have created a patch for DERBY-1434 where the test does not clean the databases. Would it be alright to add the patch to trunk and resolve database cleaning issue as a part of DERBY-2087?

Cheers

Julo

Reply via email to