| 75 | } |
| 76 | |
| 77 | void CalendarTimeInterval::assertSingleUnit() const |
| 78 | { |
| 79 | if (seconds && months) |
| 80 | throw Exception(ErrorCodes::BAD_ARGUMENTS, "Interval shouldn't contain both calendar units and clock units (e.g. months and days)"); |
| 81 | } |
| 82 | |
| 83 | void CalendarTimeInterval::assertPositive() const |
| 84 | { |