|
| template<class TA, class TB, class TR> |
| static TR | Operation (TA left, TB right) |
◆ Operation() [1/2]
template<class TA, class TB, class TR>
| TR duckdb::DecimalSubtractOverflowCheck::Operation |
( |
TA | left, |
|
|
TB | right ) |
|
inlinestatic |
54135 {
54136 TR result;
54137 if (!TryDecimalSubtract::Operation<TA, TB, TR>(left, right, result)) {
54138 throw OutOfRangeException("Overflow in subtract of DECIMAL(18) (%d - %d). You might want to add an "
54139 "explicit cast to a bigger decimal.",
54140 left, right);
54141 }
54142 return result;
54143 }
◆ Operation() [2/2]
229949 {
229950 hugeint_t result;
229951 if (!TryDecimalSubtract::Operation(left, right, result)) {
229952 throw OutOfRangeException("Overflow in subtract of DECIMAL(38) (%s - %s);", left.ToString(), right.ToString());
229953 }
229954 return result;
229955}
The documentation for this struct was generated from the following file: