Skip to content

Commit 95b8b1a

Browse files
committed
2 parents 1fe62e8 + bf3cbc8 commit 95b8b1a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

XCode/DataAccessLayer/Common/DbSession.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,8 @@ protected virtual void BuildDuplicateKey(StringBuilder sb, DbBase db, IDataColum
871871
}
872872
if (addColumns != null && addColumns.Count > 0)
873873
{
874-
sb.Append(',');
874+
// 如果前面 updateColumns 已写入内容,需要逗号分隔
875+
if (updateColumns != null && updateColumns.Count > 0) sb.Append(',');
875876
foreach (var dc in columns)
876877
{
877878
if (dc.Identity || dc.PrimaryKey) continue;

0 commit comments

Comments
 (0)