- 优化 IUpdate 组合更新方式;

This commit is contained in:
2881099
2023-02-09 14:11:50 +08:00
parent 910cd9dc9f
commit 3cee28fd42
4 changed files with 33 additions and 4 deletions

View File

@ -189,7 +189,7 @@ namespace FreeSql.ClickHouse.Curd
return;
if (_setIncr.Length > 0)
sb.Append(_set.Length > 0 ? _setIncr.ToString() : _setIncr.ToString().Substring(2));
sb.Append(_set.Length > 0 || _source.Any() ? _setIncr.ToString() : _setIncr.ToString().Substring(2));
if (_source.Any() == false)
{