KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Before posting this I googled a bit, I looked for in dbunit-user archives and a bit also in DbUnit bug list, but I'm not found what looking for. Unfortunately, answers here did not help me either. I'm using DbUnit 2.4.8 with MySQL 5.1.x to populate in setUp some JForum tables. The issue is first appearing on jforum_users table created by this script CREATE TABLE `jforum_users` ( `user_id` INT(11) NOT NULL AUTO_INCREMENT, `user_active` TINYINT(1) NULL DEFAULT NULL, `username` VARCHAR(50) NOT NULL DEFAULT '', `user_password` VARCHAR(32) NOT NULL DEFAULT '', [...] PRIMARY KEY (`user_id`) ) COLLATE='utf8_general_ci' ENGINE=InnoDB ROW_FORMAT=DEFAULT AUTO_INCREMENT=14 Executing REFRESH as database setup operation the following exception is raised. org.dbunit.dataset.NoSuchColumnException: jforum_users.USER_ID - (Non-uppercase input column: USER_ID) in ColumnNameToIndexes cache map. Note that the map's column names are NOT case sensitive. at org.dbunit.dataset.AbstractTableMetaData.getColumnIndex(AbstractTableMetaData.java:117) at org.dbunit.operation.AbstractOperation.getOperationMetaData(AbstractOperation.java:89) at org.dbunit.operation.RefreshOperation.execute(RefreshOperation.java:98) at org.dbunit.AbstractDatabaseTester.executeOperation(AbstractDatabaseTester.java:190) at org.dbunit.AbstractDatabaseTester.onSetup(AbstractDatabaseTester.java:103) at net.jforum.dao.generic.AbstractDaoTest.setUpDatabase(AbstractDaoTest.java:43) I looked in AbstractTableMetaData.java sources and nothing seems -statically- wrong. The method private Map createColumnIndexesMap(Column[] columns) uses columns[i].getColumnName().toUpperCase() </pre
Tags (comma-separated)
Save Edits
Cancel