aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Functions/DateTimeTransforms.cpp
blob: af1d9a4a5bb815fb739b925bfb9d29f4c09b1032 (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
#include <Functions/DateTimeTransforms.h>

namespace DB
{

namespace ErrorCodes
{
    extern const int ILLEGAL_TYPE_OF_ARGUMENT;
}

void throwDateIsNotSupported(const char * name)
{
    throw Exception(ErrorCodes::ILLEGAL_TYPE_OF_ARGUMENT, "Illegal type Date of argument for function {}", name);
}

void throwDateTimeIsNotSupported(const char * name)
{
    throw Exception(ErrorCodes::ILLEGAL_TYPE_OF_ARGUMENT, "Illegal type DateTime of argument for function {}", name);
}

void throwDate32IsNotSupported(const char * name)
{
    throw Exception(ErrorCodes::ILLEGAL_TYPE_OF_ARGUMENT, "Illegal type Date32 of argument for function {}", name);
}

}