| 567 | } |
| 568 | |
| 569 | bool HasDecimal(const std::vector<TypeHolder>& types) { |
| 570 | for (const auto& th : types) { |
| 571 | if (is_decimal(th.id())) { |
| 572 | return true; |
| 573 | } |
| 574 | } |
| 575 | return false; |
| 576 | } |
| 577 | |
| 578 | void PromoteIntegerForDurationArithmetic(std::vector<TypeHolder>* types) { |
| 579 | bool has_duration = std::any_of(types->begin(), types->end(), [](const TypeHolder& t) { |
no test coverage detected