on H2 prior to 2.0 map NUMERIC to DECIMAL
This is helpful the schema update tool. This workaround was lost during my work on Dialects.
This commit is contained in:
parent
f48dd846f8
commit
34cb6d50d9
|
@ -117,6 +117,12 @@ public class H2Dialect extends Dialect {
|
|||
this.sequenceInformationExtractor = SequenceInformationExtractorNoOpImpl.INSTANCE;
|
||||
this.querySequenceString = null;
|
||||
}
|
||||
|
||||
if ( version < 200 ) {
|
||||
// prior to version 2.0, H2 reported NUMERIC columns as DECIMAL,
|
||||
// which caused problems for schema update tool
|
||||
registerColumnType( Types.NUMERIC, "decimal($p,$s)" );
|
||||
}
|
||||
}
|
||||
|
||||
private static int parseBuildId(DialectResolutionInfo info) {
|
||||
|
|
Loading…
Reference in New Issue