remove useless conversion and extension point

This commit is contained in:
Enrico Olivelli 2020-09-18 16:35:14 +02:00
parent dd9bce0cc9
commit 963ed59ad4
2 changed files with 1 additions and 14 deletions

View File

@ -4462,7 +4462,7 @@ public class DBDictionary
c.setSchemaIdentifier(fromDBName(colMeta.getString("TABLE_SCHEM"), DBIdentifierType.SCHEMA)); c.setSchemaIdentifier(fromDBName(colMeta.getString("TABLE_SCHEM"), DBIdentifierType.SCHEMA));
c.setTableIdentifier(fromDBName(colMeta.getString("TABLE_NAME"), DBIdentifierType.TABLE)); c.setTableIdentifier(fromDBName(colMeta.getString("TABLE_NAME"), DBIdentifierType.TABLE));
c.setIdentifier(fromDBName(colMeta.getString("COLUMN_NAME"), DBIdentifierType.COLUMN)); c.setIdentifier(fromDBName(colMeta.getString("COLUMN_NAME"), DBIdentifierType.COLUMN));
c.setType(fromDBType(colMeta.getInt("DATA_TYPE"))); c.setType(colMeta.getInt("DATA_TYPE"));
c.setTypeIdentifier(fromDBName(colMeta.getString("TYPE_NAME"), DBIdentifierType.COLUMN_DEFINITION)); c.setTypeIdentifier(fromDBName(colMeta.getString("TYPE_NAME"), DBIdentifierType.COLUMN_DEFINITION));
c.setSize(colMeta.getInt("COLUMN_SIZE")); c.setSize(colMeta.getInt("COLUMN_SIZE"));
c.setDecimalDigits(colMeta.getInt("DECIMAL_DIGITS")); c.setDecimalDigits(colMeta.getInt("DECIMAL_DIGITS"));
@ -5900,10 +5900,6 @@ public class DBDictionary
return getNamingUtil().toDBName(name, delimit); return getNamingUtil().toDBName(name, delimit);
} }
public int fromDBType(int type) {
return type;
}
public DBIdentifier fromDBName(String name, DBIdentifierType id) { public DBIdentifier fromDBName(String name, DBIdentifierType id) {
if (delimitAll()) { if (delimitAll()) {
name = Normalizer.delimit(name, true); name = Normalizer.delimit(name, true);

View File

@ -43,14 +43,5 @@ public class HerdDBDictionary
setLeadingDelimiter(DELIMITER_BACK_TICK); setLeadingDelimiter(DELIMITER_BACK_TICK);
setTrailingDelimiter(DELIMITER_BACK_TICK); setTrailingDelimiter(DELIMITER_BACK_TICK);
} }
@Override
public int fromDBType(int i) {
if (i == Types.DOUBLE) {
return Types.REAL;
}
return i;
}
} }