2022-02-07 18:44:14 +00:00
|
|
|
#include <Functions/FunctionFactory.h>
|
|
|
|
#include <Functions/FunctionDateOrDateTimeAddInterval.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
using FunctionAddNanoseconds = FunctionDateOrDateTimeAddInterval<AddNanosecondsImpl>;
|
2022-07-04 07:01:39 +00:00
|
|
|
REGISTER_FUNCTION(AddNanoseconds)
|
2022-02-07 18:44:14 +00:00
|
|
|
{
|
|
|
|
factory.registerFunction<FunctionAddNanoseconds>();
|
2022-05-16 18:59:27 +00:00
|
|
|
}
|
2022-02-07 18:44:14 +00:00
|
|
|
|
|
|
|
using FunctionAddMicroseconds = FunctionDateOrDateTimeAddInterval<AddMicrosecondsImpl>;
|
2022-07-04 07:01:39 +00:00
|
|
|
REGISTER_FUNCTION(AddMicroseconds)
|
2022-02-07 18:44:14 +00:00
|
|
|
{
|
|
|
|
factory.registerFunction<FunctionAddMicroseconds>();
|
2022-05-16 18:59:27 +00:00
|
|
|
}
|
2022-02-07 18:44:14 +00:00
|
|
|
|
|
|
|
using FunctionAddMilliseconds = FunctionDateOrDateTimeAddInterval<AddMillisecondsImpl>;
|
2022-07-04 07:01:39 +00:00
|
|
|
REGISTER_FUNCTION(AddMilliseconds)
|
2022-02-07 18:44:14 +00:00
|
|
|
{
|
|
|
|
factory.registerFunction<FunctionAddMilliseconds>();
|
2022-05-16 18:59:27 +00:00
|
|
|
}
|
2022-02-07 18:44:14 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|