mirror of
https://github.com/dataease/dataease.git
synced 2026-05-14 21:12:33 +08:00
fix: 修复SQL Server低版本不支持CONCAT函数的问题
This commit is contained in:
@@ -141,7 +141,11 @@ public class ExtWhere2Str {
|
||||
if (StringUtils.equalsIgnoreCase(dsType, DatasourceConfiguration.DatasourceType.sqlServer.getType()) && whereNameList.size() == 1) {
|
||||
whereName = whereNameList.get(0);
|
||||
} else {
|
||||
whereName = "CONCAT(" + StringUtils.join(whereNameList, ",',',") + ")";
|
||||
if (StringUtils.equalsIgnoreCase(dsType, DatasourceConfiguration.DatasourceType.sqlServer.getType())) {
|
||||
whereName = "(" + StringUtils.join(whereNameList, "+','+") + ")";
|
||||
} else {
|
||||
whereName = "CONCAT(" + StringUtils.join(whereNameList, ",',',") + ")";
|
||||
}
|
||||
}
|
||||
} else {
|
||||
whereName = whereNameList.get(0);
|
||||
|
||||
Reference in New Issue
Block a user