Fixed error [#CLICKHOUSE-3331].

This commit is contained in:
Alexey Milovidov 2017-10-30 08:55:22 +03:00
parent 2690c920f9
commit 5a447fe661

View File

@ -147,6 +147,7 @@ public:
size_t index = d;
size_t month_inside_quarter = (lut[index].month - 1) % 3;
index = index - lut[index].day_of_month;
while (month_inside_quarter)
{
index = index - lut[index].day_of_month;