fix I937IA

This commit is contained in:
jingwei.cao 2024-02-23 14:34:14 +08:00
parent c155bcafeb
commit 4071be741c

View File

@ -83,7 +83,8 @@ public class MapperInvocationHandler implements InvocationHandler {
}
if (dbType == null) {
if (dataSourceKey != null && dataSource != null) {
dbType = dataSource.getDbType(dataSourceKey);
//使用最终分片获取数据源类型
dbType = dataSource.getDbType(shardingDataSourceKey);
}
if (dbType == null) {
dbType = FlexGlobalConfig.getDefaultConfig().getDbType();