[#3667] <types/> configuration doesn't work for Derby DATE types

This commit is contained in:
Lukas Eder 2014-10-06 17:02:33 +02:00
parent 7600a95523
commit 3d64431f59
2 changed files with 5 additions and 1 deletions

View File

@ -148,6 +148,10 @@ extends AbstractDefinition {
return 0;
}
protected String parseTypeName(String typeName) {
return typeName.replace(" NOT NULL", "");
}
protected boolean parseNotNull(String typeName) {
return typeName.toUpperCase().contains("NOT NULL");
}

View File

@ -93,7 +93,7 @@ public class DerbyTableDefinition extends AbstractTableDefinition {
DataTypeDefinition type = new DefaultDataTypeDefinition(
getDatabase(),
getSchema(),
typeName,
parseTypeName(typeName),
precision,
precision,
scale,