cockroachdb / appdev-issues

This is an issue repository for misc AppDev team issues.
1 stars 1 forks source link

Hibernate: Auto detect CockroachDB dialect #35

Open vy-ton opened 4 years ago

vy-ton commented 4 years ago

Looks like Hibernate supports a way to auto-detect the right dialect. This provides better UX than requiring users to set the hibernate.dialect property, especially since CockroachDB has different dialects for different versions.

rafiss commented 4 years ago

The Hibernate code does this by inspecting the protocol metadata, which we report as Postgres 9.5

Will follow up in the Hibernate project to ask if they have a suggestion for how we could check the CockroachDB version.