HHH-16773 Fix functional dependency support for TiDB and Cockroach
This commit is contained in:
parent
fd690f378d
commit
cbac1b82c0
|
@ -1038,7 +1038,7 @@ public class CockroachLegacyDialect extends Dialect {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public FunctionalDependencyAnalysisSupport getFunctionalDependencyAnalysisSupport() {
|
public FunctionalDependencyAnalysisSupport getFunctionalDependencyAnalysisSupport() {
|
||||||
return FunctionalDependencyAnalysisSupportImpl.TABLE_GROUP_AND_CONSTANTS;
|
return FunctionalDependencyAnalysisSupportImpl.TABLE_REFERENCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -990,7 +990,7 @@ public class CockroachDialect extends Dialect {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public FunctionalDependencyAnalysisSupport getFunctionalDependencyAnalysisSupport() {
|
public FunctionalDependencyAnalysisSupport getFunctionalDependencyAnalysisSupport() {
|
||||||
return FunctionalDependencyAnalysisSupportImpl.TABLE_GROUP_AND_CONSTANTS;
|
return FunctionalDependencyAnalysisSupportImpl.TABLE_REFERENCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -157,4 +157,9 @@ public class TiDBDialect extends MySQLDialect {
|
||||||
Duration duration = Duration.ofMillis( timeoutInMilliseconds );
|
Duration duration = Duration.ofMillis( timeoutInMilliseconds );
|
||||||
return duration.getSeconds();
|
return duration.getSeconds();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public FunctionalDependencyAnalysisSupport getFunctionalDependencyAnalysisSupport() {
|
||||||
|
return FunctionalDependencyAnalysisSupportImpl.TABLE_REFERENCE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue