mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Merge pull request #13417 from vladimir-golovchenko/fix-quota-statements-interval-formatting
Fix a 'Week'-interval formatting for ATTACH/ALTER/CREATE QUOTA-statements
This commit is contained in:
commit
da7bc8962d
@ -51,10 +51,10 @@ IntervalKind IntervalKind::fromAvgSeconds(Int64 num_seconds)
|
||||
return IntervalKind::Year;
|
||||
if (!(num_seconds % 7889238))
|
||||
return IntervalKind::Quarter;
|
||||
if (!(num_seconds % 604800))
|
||||
return IntervalKind::Week;
|
||||
if (!(num_seconds % 2629746))
|
||||
return IntervalKind::Month;
|
||||
if (!(num_seconds % 604800))
|
||||
return IntervalKind::Week;
|
||||
if (!(num_seconds % 86400))
|
||||
return IntervalKind::Day;
|
||||
if (!(num_seconds % 3600))
|
||||
|
Loading…
Reference in New Issue
Block a user