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
a8cd4ad932
commit
36ebd31f61
|
@ -147,6 +147,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