From 898c935d3137be02f6ba59ca803a835fbf5ddb60 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Wed, 19 Oct 2022 17:36:49 +0300 Subject: [PATCH] Update GregorianDate.h --- src/Functions/GregorianDate.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Functions/GregorianDate.h b/src/Functions/GregorianDate.h index 5edaffd2b15..248ff014fa4 100644 --- a/src/Functions/GregorianDate.h +++ b/src/Functions/GregorianDate.h @@ -328,17 +328,16 @@ namespace DB } } - template template OrdinalDate::OrdinalDate(TDay modified_julian_day) { /// This function supports day number from -678941 to 2973119 (which represent 0000-01-01 and 9999-12-31 respectively). - if constexpr (is_signed_v && std::numeric_limits::lowest() < -678941) + if constexpr (is_signed_v && std::numeric_limits::lowest() < -678941) if (modified_julian_day < -678941) modified_julian_day = -678941; - if constexpr (std::numeric_limits::max() > 2973119) + if constexpr (std::numeric_limits::max() > 2973119) if (modified_julian_day > 2973119) modified_julian_day = 2973119;