Skip to content

Commit

Permalink
调整一个返回值。
Browse files Browse the repository at this point in the history
  • Loading branch information
cyq1162 committed Jul 4, 2016
1 parent c64cf0a commit 0cc88a6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions DAL/DbBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -896,10 +896,12 @@ public bool EndTransaction()
{
try
{
if (_tran.Connection != null)
if (_tran.Connection == null)
{
_tran.Commit();
return false;//上一个执行语句发生了异常(特殊情况在ExeReader guid='xxx' 但不抛异常)
}
_tran.Commit();

}
catch (Exception err)
{
Expand Down

0 comments on commit 0cc88a6

Please sign in to comment.