Dialect issue on 6.4.0.Final and Oracle

Getting the following error on 6.4.0.Final, which we do not get on 6.4.0.CR1:

"Unable to determine Dialect for Oracle 19.1 (please set 'hibernate.dialect' or register a Dialect resolver)"

This is in a spring boot 3+ project, but it only appears when we change the version to the .Final. For now we’ve reverted to CR1. We’d prefer not to have to explicitly set this, as it complicates switching between databases.

What database are you using? The dialect is matched based on the java.sql.DatabaseMetaData#getDatabaseProductName(), which according to org.hibernate.dialect.Database#ORACLE, requires that the result equals Oracle. We can fix that, but I don’t really see how version 6.4.0.Final would be different from CR1 in this respect. Maybe it’s related to [HHH-17424] - Hibernate JIRA, but please try to create a reproducer with our test case template (hibernate-test-case-templates/orm/hibernate-orm-6/src/test/java/org/hibernate/bugs/JPAUnitTestCase.java at main · hibernate/hibernate-test-case-templates · GitHub) and if you are able to reproduce the issue, create a bug ticket in our issue tracker(https://hibernate.atlassian.net) and attach that reproducer.