assertTrue(d.getDriverMetadata().getFieldParam(fc, "LENGTH").equals("5"));
d.stop();
}
public void testCheckInput() throws Exception {
DefaultDriverMetadata ddm = new DefaultDriverMetadata();
ddm.addField("texto", "VARCHAR", new String[]{"LENGTH"}, new String[]{"5"});
ddm.addField("entero", "TINYINT");
ddm.addField("decimal", "DECIMAL", new String[]{"SCALE", "PRECISION"}, new String[]{"2", "5"});
ddm.addField("decimal2", "DECIMAL");
ddm.addField("texto2", "CHAR");
ddm.setPrimaryKey(new String[]{"entero"});
DBSource dbsd = new DBSource(null, 0, "src/test/resources/testdb", "sa", "",
"nuevo", "jdbc:hsqldb:file");
ds.createDataSource(new DBSourceCreation(dbsd, ddm));
ds.registerDataSource("nuevoDataSource", new DBTableSourceDefinition(dbsd));
DataSource d = ds.getDataSource("nuevoDataSource");