Data type not recognized
March 20th, 2009
Applies to:
DBUnit
Description:
By default, DbUnit only supports standard JDBC data types. This error will occur while using vendor-specific data types
Cause:
You are getting this warning message if you are using vendor-specific data types.
You can replace the default DbUnit data type factory to get support for custom data types. DbUnit provides extended factories for some vendors, which are located in org.dbunit.ext subpackages.
Here is how to setup the Oracle factory:
IDatabaseConnection connection = new DatabaseConnection(jdbcConnection, schema);
DatabaseConfig config = connection.getConfig();
config.setProperty(DatabaseConfig.PROPERTY_DATATYPE_FACTORY, new OracleDataTypeFactory());