aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Functions/addSubSeconds.cpp
blob: fa901ad4dcd1284672d355e637b2c6e12e1b21a2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <Functions/FunctionFactory.h>
#include <Functions/FunctionDateOrDateTimeAddInterval.h>


namespace DB
{

using FunctionAddNanoseconds = FunctionDateOrDateTimeAddInterval<AddNanosecondsImpl>;
REGISTER_FUNCTION(AddNanoseconds)
{
    factory.registerFunction<FunctionAddNanoseconds>();
}

using FunctionAddMicroseconds = FunctionDateOrDateTimeAddInterval<AddMicrosecondsImpl>;
REGISTER_FUNCTION(AddMicroseconds)
{
    factory.registerFunction<FunctionAddMicroseconds>();
}

using FunctionAddMilliseconds = FunctionDateOrDateTimeAddInterval<AddMillisecondsImpl>;
REGISTER_FUNCTION(AddMilliseconds)
{
    factory.registerFunction<FunctionAddMilliseconds>();
}

}