|
| 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::DecimalAddOverflowCheck::Operation |
( |
TA | left, |
|
|
TB | right ) |
|
inlinestatic |
20214 {
20215 TR result;
20216 if (!TryDecimalAdd::Operation<TA, TB, TR>(left, right, result)) {
20217 throw OutOfRangeException("Overflow in addition of DECIMAL(18) (%d + %d). You might want to add an "
20218 "explicit cast to a bigger decimal.",
20219 left, right);
20220 }
20221 return result;
20222 }
◆ Operation() [2/2]
228000 {
228001 hugeint_t result;
228002 if (!TryDecimalAdd::Operation(left, right, result)) {
228003 throw OutOfRangeException("Overflow in addition of DECIMAL(38) (%s + %s);", left.ToString(), right.ToString());
228004 }
228005 return result;
228006}
The documentation for this struct was generated from the following file: