mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 16:50:48 +00:00
Fixed error [#CLICKHOUSE-3331].
This commit is contained in:
parent
2690c920f9
commit
5a447fe661
@ -147,6 +147,7 @@ public:
|
|||||||
size_t index = d;
|
size_t index = d;
|
||||||
size_t month_inside_quarter = (lut[index].month - 1) % 3;
|
size_t month_inside_quarter = (lut[index].month - 1) % 3;
|
||||||
|
|
||||||
|
index = index - lut[index].day_of_month;
|
||||||
while (month_inside_quarter)
|
while (month_inside_quarter)
|
||||||
{
|
{
|
||||||
index = index - lut[index].day_of_month;
|
index = index - lut[index].day_of_month;
|
||||||
|
Loading…
Reference in New Issue
Block a user