1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

MCOL-5503: Fix broken quarter (#2855)

* Fix broken quarter function
This commit is contained in:
Leonid Fedorov
2023-06-02 18:06:58 +03:00
committed by GitHub
parent 8f93fc3623
commit 77eedd1756
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ long long dateGet(uint64_t time, IntervalColumn::interval_type unit, bool dateTy
case IntervalColumn::INTERVAL_MICROSECOND: return msec;
case IntervalColumn::INTERVAL_QUARTER: return month / 4 + 1;
case IntervalColumn::INTERVAL_QUARTER: return (month - 1) / 3 + 1;
case IntervalColumn::INTERVAL_WEEK: return helpers::calc_mysql_week(year, month, day, 0);