fix: 修复SQL Server低版本不支持CONCAT函数的问题

This commit is contained in:
junjun
2025-12-12 21:36:49 +08:00
committed by Junjun
parent f28a2f98fb
commit 560de37ef4

View File

@@ -141,11 +141,7 @@ public class ExtWhere2Str {
if (StringUtils.equalsIgnoreCase(dsType, DatasourceConfiguration.DatasourceType.sqlServer.getType()) && whereNameList.size() == 1) {
whereName = whereNameList.get(0);
} else {
if (StringUtils.equalsIgnoreCase(dsType, DatasourceConfiguration.DatasourceType.sqlServer.getType())) {
whereName = "(" + StringUtils.join(whereNameList, "+','+") + ")";
} else {
whereName = "CONCAT(" + StringUtils.join(whereNameList, ",',',") + ")";
}
whereName = "CONCAT(" + StringUtils.join(whereNameList, ",',',") + ")";
}
} else {
whereName = whereNameList.get(0);