Skip to content

Commit

Permalink
[fix]修正Int64自增字段返回值加入埋点时的转换错误
Browse files Browse the repository at this point in the history
  • Loading branch information
nnhy committed Sep 18, 2024
1 parent c1a9c59 commit 9104fed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion XCode/DataAccessLayer/DAL_DbOperate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ private void AppendTag(ISpan? span, String sql, Object? rs, String action)
}
else if (action == nameof(InsertAndGetIdentity) || action == nameof(InsertAndGetIdentityAsync))
{
if (rs.ToInt() > 0) span.Value = 1;
if (rs.ToLong() > 0) span.Value = 1;

span.Tag = $"{sql} [id={rs}]";
}
Expand Down

0 comments on commit 9104fed

Please sign in to comment.