HHH-16579 - Make the parseVersion() method in CockroachDialect.java public for Reactive
This commit is contained in:
parent
21b7510c40
commit
4f403a1815
|
@ -148,13 +148,6 @@ public class CockroachDialect extends Dialect {
|
||||||
this.driverKind = driverKind;
|
this.driverKind = driverKind;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* For Hibernate Reactive
|
|
||||||
*/
|
|
||||||
public CockroachDialect(String version, PostgreSQLDriverKind driverKind) {
|
|
||||||
this( parseVersion( version ), driverKind );
|
|
||||||
}
|
|
||||||
|
|
||||||
protected static DatabaseVersion fetchDataBaseVersion( DialectResolutionInfo info ) {
|
protected static DatabaseVersion fetchDataBaseVersion( DialectResolutionInfo info ) {
|
||||||
String versionString = null;
|
String versionString = null;
|
||||||
if ( info.getDatabaseMetadata() != null ) {
|
if ( info.getDatabaseMetadata() != null ) {
|
||||||
|
@ -171,7 +164,7 @@ public class CockroachDialect extends Dialect {
|
||||||
return parseVersion( versionString );
|
return parseVersion( versionString );
|
||||||
}
|
}
|
||||||
|
|
||||||
protected static DatabaseVersion parseVersion(String versionString ) {
|
public static DatabaseVersion parseVersion( String versionString ) {
|
||||||
DatabaseVersion databaseVersion = null;
|
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)"
|
// 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 );
|
Matcher m = CRDB_VERSION_PATTERN.matcher( versionString == null ? "" : versionString );
|
||||||
|
|
Loading…
Reference in New Issue