mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-28 23:09:13 +00:00
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 H2Dialect(int version) {
|
||||
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…
x
Reference in New Issue
Block a user