HHH-16773 Fix functional dependency support for TiDB and Cockroach

This commit is contained in:
Marco Belladelli 2023-06-20 11:04:01 +02:00
parent fd690f378d
commit cbac1b82c0
3 changed files with 7 additions and 2 deletions

View File

@ -1038,7 +1038,7 @@ public class CockroachLegacyDialect extends Dialect {
@Override
public FunctionalDependencyAnalysisSupport getFunctionalDependencyAnalysisSupport() {
return FunctionalDependencyAnalysisSupportImpl.TABLE_GROUP_AND_CONSTANTS;
return FunctionalDependencyAnalysisSupportImpl.TABLE_REFERENCE;
}
@Override

View File

@ -990,7 +990,7 @@ public class CockroachDialect extends Dialect {
@Override
public FunctionalDependencyAnalysisSupport getFunctionalDependencyAnalysisSupport() {
return FunctionalDependencyAnalysisSupportImpl.TABLE_GROUP_AND_CONSTANTS;
return FunctionalDependencyAnalysisSupportImpl.TABLE_REFERENCE;
}
@Override

View File

@ -157,4 +157,9 @@ public class TiDBDialect extends MySQLDialect {
Duration duration = Duration.ofMillis( timeoutInMilliseconds );
return duration.getSeconds();
}
@Override
public FunctionalDependencyAnalysisSupport getFunctionalDependencyAnalysisSupport() {
return FunctionalDependencyAnalysisSupportImpl.TABLE_REFERENCE;
}
}