Skip to content

Commit

Permalink
0000789: DbFill does not support JDBC type LONGVARCHAR.
Browse files Browse the repository at this point in the history
  • Loading branch information
abrougher committed Aug 26, 2012
1 parent e011af9 commit edaaa5f
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -182,11 +182,11 @@ private Object[] generateRandomValues(Map<String, Object> insertedColumns, Table
objectValue = randomBytes();
} else if (type == Types.ARRAY) {
objectValue = null;
} else if (type == Types.VARCHAR) {
} else if (type == Types.VARCHAR || type == Types.LONGVARCHAR) {
objectValue = randomString(column.getSizeAsInt()>1000?1000:column.getSizeAsInt());
}
if (objectValue == null) {
throw new RuntimeException("No random value generated for the object " + table.getName() + "." + column.getName());
throw new RuntimeException("No random value generated for the object " + table.getName() + "." + column.getName() + " of type " + type);
}
list.add(objectValue);
}
Expand Down

0 comments on commit edaaa5f

Please sign in to comment.