|
From: SourceForge.net <no...@so...> - 2012-07-11 13:47:18
|
Bugs item #3542576, was opened at 2012-07-11 06:47 Message generated for change (Tracker Item Submitted) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=449491&aid=3542576&group_id=47439 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Bug Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: https://www.google.com/accounts () Assigned to: matthias g (gommma) Summary: calls to JdbcDatabaseTester getConnection return new connect Initial Comment: calls to JdbcDatabaseTester getConnection return new connection on every call. As a result it is not possible to setProperty on the config as the connection object is never used again The following code will always fail if the schema contains BLOBS DatabaseConfig config = databaseTester.getConnection().getConfig(); config.setProperty(DatabaseConfig.PROPERTY_DATATYPE_FACTORY, new Oracle10DataTypeFactory()); // initialize your dataset here XmlDataSet dataSet = new XmlDataSet(new FileReader("./src/test/resources/test1_dataset.xml")); databaseTester.setDataSet( dataSet ); // will call default setUpOperation databaseTester.onSetup(); ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=449491&aid=3542576&group_id=47439 |