-
This is a real bug -- if you try to test an oracle connection without using the schema, it will get confused very easily. In a number of cases I used this tester with a schema set, and was confused when it couldn't find the tables.
http://tersesystems.com/post/by_id/9700060.
2008-02-29 22:57:19 UTC in DbUnit
-
I have the same problem; I'm unable to get the LDAP integration working.
The error I get from the standalone-start.bat script is
"ERROR | The substrings sequence is empty"
If I google for this phrase, it appears in "MatchingRuleAssertionGrammar.java" in the Apache Directory project:
+ TLV tlv = ldapMessageContainer.getCurrentTLV();
+
+.
2007-12-17 20:10:08 UTC in GCALDaemon
-
The DataSourceDatabaseTester class uses
public IDatabaseConnection getConnection() throws Exception
{
Assert.assertNotNull( "DataSource is not set", dataSource );
return new DatabaseConnection( dataSource.getConnection() );
}
even when the schema has been set.
It should use
return new DatabaseConnection(dataSource.getConnection(), getSchema());.
2007-05-01 18:31:12 UTC in DbUnit
-
If I run the following program:
// Get the schema definition
InputStream configStream = getClass().getResourceAsStream("/schemacrawler.config.properties");
Properties props = new Properties();
props.load(configStream);
SchemaCrawlerOptions options = new SchemaCrawlerOptions(props);
final Schema schema = SchemaCrawler.getSchema(dataSource...
2007-02-14 20:35:49 UTC in SchemaCrawler
-
On Oracle 10g, the "flashback" tables are pulled, even though they are not valid user defined tables.
Feb 14, 2007 11:25:21 AM schemacrawler.crawl.SchemaCrawler getSchema
WARNING: Error retrieving metadata for table DPELLEGRINI.BIN$KXVosKjG2IDgQAB/AQA8sg==$0: ORA-01424: missing or illegal character following the escape character
schemacrawler.crawl.SchemaCrawlerException: Error...
2007-02-14 19:27:36 UTC in SchemaCrawler
-
Looks like OracleConnection is not needed for the 10g database, so just a standard database connection can be used:
http://www.oracle.com/technology/sample_code/tech/java/codesnippet/jdbc/clob10g/handlingclobsinoraclejdbc10g.html.
2007-01-16 20:24:46 UTC in DbUnit
-
Whoops, looks like it's actually the org.dbunit.ext.oracle.OracleBlobDataType class that is using introspection here.
The c3p0 documentation doesn't clear up a whole lot, but there's at least some documentation on how to do this... hmmm.
http://www.mchange.com/projects/c3p0/index.html#raw_connection_ops.
2007-01-16 20:03:34 UTC in DbUnit
-
Looks like the oracle driver tries to introspect the class, so we need to expose C3P0's internal connection when calling this:
org.dbunit.dataset.datatype.TypeCastException: Error casting value for table 'RM_CATEGORIES' and column 'DESCRIPTION'
at org.dbunit.operation.AbstractBatchOperation.execute(AbstractBatchOperation.java:182)
at...
2007-01-16 19:52:28 UTC in DbUnit
-
Okay, this can be fixed by using the following wrapper:
/**
* Gets the appropriate database connection, depending on whether we are using Oracle or HSQL.
*
* @param schema
* @param connection2
* @return the appropriate IDatabaseConnection.
* @throws SQLException if the database connection cannot be got.
*/
private IDatabaseConnection...
2007-01-16 19:50:37 UTC in DbUnit
-
May be a duplicate of 1144269.
2007-01-15 22:18:26 UTC in DbUnit