Remove JsonbPostgreSQL95Dialect from quarkus.

Closes #16549
This commit is contained in:
vramik 2023-03-14 10:02:30 +01:00 committed by Václav Muzikář
parent de663dbf93
commit acebf4616e
2 changed files with 2 additions and 2 deletions

View file

@ -195,7 +195,7 @@ public final class Database {
Enabled.MAP_STORE_ONLY,
POSTGRES.xaDriver,
POSTGRES.nonXaDriver,
"org.hibernate.dialect.CockroachDB201Dialect",
"org.hibernate.dialect.CockroachDialect",
"jdbc:postgresql://${kc.db-url-host:localhost}:${kc.db-url-port:26257}/${kc.db-url-database:keycloak}${kc.db-url-properties:}",
List.of("liquibase.database.core.CockroachDatabase"),
"cockroach"

View file

@ -189,7 +189,7 @@ final class DatabasePropertyMappers {
private static Optional<String> transformDialect(Optional<String> db, ConfigSourceInterceptorContext context) {
if (isJpaStore()) {
return of("org.keycloak.models.map.storage.jpa.hibernate.dialect.JsonbPostgreSQL95Dialect");
return Database.getDialect(getJpaStoreDbVendor().name().toLowerCase());
}
Optional<String> databaseKind = Database.getDatabaseKind(db.get());