|
| template<class TA, class TB, class TR> |
| static TR | Operation (TA left, TB right) |
◆ Operation() [1/5]
template<class TA, class TB, class TR>
| TR duckdb::DivideOperator::Operation |
( |
TA | left, |
|
|
TB | right ) |
|
inlinestatic |
228132 {
228133 D_ASSERT(right != 0);
228134 return left / right;
228135 }
◆ Operation() [2/5]
template<>
| float duckdb::DivideOperator::Operation |
( |
float | left, |
|
|
float | right ) |
229131 {
229132 auto result = left / right;
229133 return result;
229134}
◆ Operation() [3/5]
template<>
| double duckdb::DivideOperator::Operation |
( |
double | left, |
|
|
double | right ) |
229137 {
229138 auto result = left / right;
229139 return result;
229140}
◆ Operation() [4/5]
229143 {
229144 if (right.lower == 0 && right.upper == 0) {
229145 throw InternalException("Hugeint division by zero!");
229146 }
229147 return left / right;
229148}
◆ Operation() [5/5]
229151 {
229152 interval_t result;
229153 if (!TryMultiplyOperator::Operation<interval_t, double, interval_t>(left, 1.0 / right, result)) {
229154 throw OutOfRangeException("Overflow in INTERVAL division");
229155 }
229156
229157 return result;
229158}
The documentation for this struct was generated from the following file: