Update exp to sql

This commit is contained in:
sunkaixuan 2023-08-06 16:57:54 +08:00
parent 443f677a25
commit f2bfd93d73

View File

@ -338,7 +338,8 @@ namespace SqlSugar
}
public override string MergeString(params string[] strings)
{
return " concat(" + string.Join(",", strings).Replace("+", "") + ") ";
var key = Guid.NewGuid() + "";
return " concat(" + string.Join(",", strings.Select(it => it?.Replace("+", key))).Replace("+", "").Replace(key, "+") + ") ";
}
public override string IsNull(MethodCallExpressionModel model)
{