From 4374e1d8b894ac168c69e9c496ebc7dda93118ca Mon Sep 17 00:00:00 2001 From: kniv <kniv@yandex-team.ru> Date: Thu, 10 Mar 2022 23:44:07 +0300 Subject: YQL-8217: Support >6 digits in seconds (as with truncation) YQL-8217: Support >6 digits in seconds (as with truncate) ref:f617d83f9c6d17bea1f13066aa660dfd35da051f --- ydb/library/yql/udfs/common/datetime2/datetime_udf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ydb/library/yql/udfs/common/datetime2/datetime_udf.cpp b/ydb/library/yql/udfs/common/datetime2/datetime_udf.cpp index 763fea8024..06430b5fee 100644 --- a/ydb/library/yql/udfs/common/datetime2/datetime_udf.cpp +++ b/ydb/library/yql/udfs/common/datetime2/datetime_udf.cpp @@ -1541,7 +1541,7 @@ namespace { ++it; --digits; } - + for (; !digits && limit && std::isdigit(*it); --limit, ++it); while (digits--) { usec *= 10U; } -- cgit v1.2.3