mirror of https://github.com/apache/openjpa.git
remove useless conversion and extension point
This commit is contained in:
parent
dd9bce0cc9
commit
963ed59ad4
|
@ -4462,7 +4462,7 @@ public class DBDictionary
|
|||
c.setSchemaIdentifier(fromDBName(colMeta.getString("TABLE_SCHEM"), DBIdentifierType.SCHEMA));
|
||||
c.setTableIdentifier(fromDBName(colMeta.getString("TABLE_NAME"), DBIdentifierType.TABLE));
|
||||
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.setSize(colMeta.getInt("COLUMN_SIZE"));
|
||||
c.setDecimalDigits(colMeta.getInt("DECIMAL_DIGITS"));
|
||||
|
@ -5900,10 +5900,6 @@ public class DBDictionary
|
|||
return getNamingUtil().toDBName(name, delimit);
|
||||
}
|
||||
|
||||
public int fromDBType(int type) {
|
||||
return type;
|
||||
}
|
||||
|
||||
public DBIdentifier fromDBName(String name, DBIdentifierType id) {
|
||||
if (delimitAll()) {
|
||||
name = Normalizer.delimit(name, true);
|
||||
|
|
|
@ -43,14 +43,5 @@ public class HerdDBDictionary
|
|||
setLeadingDelimiter(DELIMITER_BACK_TICK);
|
||||
setTrailingDelimiter(DELIMITER_BACK_TICK);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int fromDBType(int i) {
|
||||
if (i == Types.DOUBLE) {
|
||||
return Types.REAL;
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue