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
|
||||
public FunctionalDependencyAnalysisSupport getFunctionalDependencyAnalysisSupport() {
|
||||
return FunctionalDependencyAnalysisSupportImpl.TABLE_GROUP_AND_CONSTANTS;
|
||||
return FunctionalDependencyAnalysisSupportImpl.TABLE_REFERENCE;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -990,7 +990,7 @@ public class CockroachDialect extends Dialect {
|
|||
|
||||
@Override
|
||||
public FunctionalDependencyAnalysisSupport getFunctionalDependencyAnalysisSupport() {
|
||||
return FunctionalDependencyAnalysisSupportImpl.TABLE_GROUP_AND_CONSTANTS;
|
||||
return FunctionalDependencyAnalysisSupportImpl.TABLE_REFERENCE;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue