Override CockroachDialect#determineDatabaseVersion implementation
This commit is contained in:
parent
e66cbc1d8f
commit
9b5f17340f
|
@ -149,6 +149,12 @@ public class CockroachLegacyDialect extends Dialect {
|
||||||
super(version);
|
super(version);
|
||||||
this.driverKind = driverKind;
|
this.driverKind = driverKind;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public DatabaseVersion determineDatabaseVersion(DialectResolutionInfo info) {
|
||||||
|
return fetchDataBaseVersion( info );
|
||||||
|
}
|
||||||
|
|
||||||
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 ) {
|
||||||
|
|
|
@ -163,6 +163,11 @@ public class CockroachDialect extends Dialect {
|
||||||
this.driverKind = driverKind;
|
this.driverKind = driverKind;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public DatabaseVersion determineDatabaseVersion(DialectResolutionInfo info) {
|
||||||
|
return fetchDataBaseVersion( info );
|
||||||
|
}
|
||||||
|
|
||||||
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 ) {
|
||||||
|
|
Loading…
Reference in New Issue