if ( "MySQL".equals( databaseName ) ) {
if (databaseMajorVersion >= 5 ) {
return new MySQL5Dialect();
}
return new MySQLDialect();
}
if ( "PostgreSQL".equals( databaseName ) ) {
final int databaseMinorVersion = metaData.getDatabaseMinorVersion();
if ( databaseMajorVersion > 8 || ( databaseMajorVersion == 8 && databaseMinorVersion >= 2 ) ) {