Skip to content

Commit

Permalink
改成bigint避免转换数据溢出
Browse files Browse the repository at this point in the history
  • Loading branch information
cyq1162 committed May 5, 2017
1 parent 1259a2f commit dc79388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SQL/SqlCreate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ internal string GetInsertSql()
}
else
{
sql += " select cast(scope_Identity() as int) as OutPutValue";
sql += " select cast(scope_Identity() as bigint) as OutPutValue";//改成bigint避免转换数据溢出
}
}
else if (!primaryCell.IsNullOrEmpty)
Expand Down

0 comments on commit dc79388

Please sign in to comment.