|
| 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::DecimalMultiplyOverflowCheck::Operation |
( |
TA | left, |
|
|
TB | right ) |
|
inlinestatic |
54013 {
54014 TR result;
54015 if (!TryDecimalMultiply::Operation<TA, TB, TR>(left, right, result)) {
54016 throw OutOfRangeException("Overflow in multiplication of DECIMAL(18) (%d * %d). You might want to add an "
54017 "explicit cast to a bigger decimal.",
54018 left, right);
54019 }
54020 return result;
54021 }
◆ Operation() [2/2]
229717 {
229718 hugeint_t result;
229719 if (!TryDecimalMultiply::Operation(left, right, result)) {
229720 throw OutOfRangeException("Overflow in multiplication of DECIMAL(38) (%s * %s). You might want to add an "
229721 "explicit cast to a decimal with a smaller scale.",
229722 left.ToString(), right.ToString());
229723 }
229724 return result;
229725}
The documentation for this struct was generated from the following file: