mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-18 00:55:16 +00:00
HHH-8331 keep postgres81 as the default
This commit is contained in:
parent
0132ebb838
commit
763b201fe4
@ -93,11 +93,15 @@ public Dialect resolve(DatabaseInfo databaseInfo) {
|
||||
final int majorVersion = databaseInfo.getDatabaseMajorVersion();
|
||||
final int minorVersion = databaseInfo.getDatabaseMinorVersion();
|
||||
|
||||
if ( majorVersion == 8 ) {
|
||||
return minorVersion >= 2 ? new PostgreSQL82Dialect() : new PostgreSQL81Dialect();
|
||||
if ( majorVersion == 9 ) {
|
||||
return new PostgreSQL9Dialect();
|
||||
}
|
||||
|
||||
return new PostgreSQL9Dialect();
|
||||
if ( majorVersion == 8 && minorVersion >= 2 ) {
|
||||
return new PostgreSQL82Dialect();
|
||||
}
|
||||
|
||||
return new PostgreSQL81Dialect();
|
||||
}
|
||||
|
||||
if ( "Apache Derby".equals( databaseName ) ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user