HHH-16579 Add constructor to CockroachDialect
Hibernate Reactive needs a constructor that parses the version and doesn't run a query on the database.
This commit is contained in:
parent
1bb1ef93ee
commit
21b7510c40
|
@ -148,6 +148,13 @@ 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 ) {
|
||||
|
|
Loading…
Reference in New Issue