Skip to content

Commit

Permalink
Merged develop into master
Browse files Browse the repository at this point in the history
  • Loading branch information
ennerperez committed Dec 31, 2016
2 parents 1422f4c + f3f18c5 commit 46df7a3
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions Support.Data/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2050,12 +2050,12 @@ public static int Insert(this IDbConnection conn, object obj, string extra, Type
}

}
catch (Exception ex)
catch (Exception)
{
//If Platform.SQLiteApi.ExtendedErrCode(Me.Handle) = ExtendedResult.ConstraintNotNull Then
// Throw NotNullConstraintViolationException.[New](ex.Result, ex.Message, map, obj)
//End If
throw ex;
throw; //CA2200
}
finally
{
Expand Down Expand Up @@ -2136,14 +2136,14 @@ public static int Update(this IDbConnection conn, object obj, Type objType)
{
rowsAffected = conn.Execute(q, ps.ToArray());
}
catch (Exception ex)
catch (Exception)
{
//if (ex.Result == Result.Constraint && Platform.SQLiteApi.ExtendedErrCode(Handle) == ExtendedResult.ConstraintNotNull)
//{
// throw NotNullConstraintViolationException.New(ex, map, obj);
//}

throw ex;
throw; //CA2200
}

return rowsAffected;
Expand Down Expand Up @@ -2328,12 +2328,10 @@ public static IEnumerable<T> ExecuteDeferredQuery<T>(this IDbCommand cmd, TableM

}
}
catch (Exception ex)
catch (Exception)
{
#if DEBUG
Console.WriteLine(ex.Message);
#endif
throw ex;

throw; //CA2200
}
finally
{
Expand Down

0 comments on commit 46df7a3

Please sign in to comment.