You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -674,18 +698,42 @@ internal partial class CqlOperators
674
698
publicint?Subtract(int?left,int?right)
675
699
{
676
700
if(left==null||right==null)returnnull;
677
-
elsereturnleft-right;
701
+
try
702
+
{
703
+
returnleft-right;
704
+
}
705
+
catch(OverflowExceptione)
706
+
{
707
+
Message(new{left,right,e},"CqlOperators.ArithmeticOperators.Subtract","Warning","Ignored overflow errors from type integer subtraction, returned null.");
708
+
returnnull;
709
+
}
678
710
}
679
711
680
712
publiclong?Subtract(long?left,long?right)
681
713
{
682
714
if(left==null||right==null)returnnull;
683
-
elsereturnleft-right;
715
+
try
716
+
{
717
+
returnleft-right;
718
+
}
719
+
catch(OverflowExceptione)
720
+
{
721
+
Message(new{left,right,e},"CqlOperators.ArithmeticOperators.Subtract","Warning","Ignored overflow errors from type long subtraction, returned null.");
Message(new{left,right,e},"CqlOperators.ArithmeticOperators.Subtract","Warning","Ignored overflow errors from type decimal subtraction, returned null.");
0 commit comments