HHH-16579 - Make the parseVersion() method in CockroachDialect.java public for Reactive

This commit is contained in:
Jan Schatteman 2023-05-10 17:30:22 +02:00
parent 21b7510c40
commit 4f403a1815
1 changed files with 1 additions and 8 deletions

View File

@ -148,13 +148,6 @@ public class CockroachDialect extends Dialect {
this.driverKind = driverKind;
}
/**
* For Hibernate Reactive
*/
public CockroachDialect(String version, PostgreSQLDriverKind driverKind) {
this( parseVersion( version ), driverKind );
}
protected static DatabaseVersion fetchDataBaseVersion( DialectResolutionInfo info ) {
String versionString = null;
if ( info.getDatabaseMetadata() != null ) {
@ -171,7 +164,7 @@ public class CockroachDialect extends Dialect {
return parseVersion( versionString );
}
protected static DatabaseVersion parseVersion(String versionString ) {
public static DatabaseVersion parseVersion( String versionString ) {
DatabaseVersion databaseVersion = null;
// What the DB select returns is similar to "CockroachDB CCL v21.2.10 (x86_64-unknown-linux-gnu, built 2022/05/02 17:38:58, go1.16.6)"
Matcher m = CRDB_VERSION_PATTERN.matcher( versionString == null ? "" : versionString );