mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 02:12:21 +00:00
68181ab00f
This reverts commit 5225fc6a14
.
27 lines
647 B
C++
27 lines
647 B
C++
#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 argument of type Date for function {}", name);
|
|
}
|
|
|
|
void throwDate32IsNotSupported(const char * name)
|
|
{
|
|
throw Exception(ErrorCodes::ILLEGAL_TYPE_OF_ARGUMENT, "Illegal argument of type Date32 for function {}", name);
|
|
}
|
|
|
|
void throwDateTimeIsNotSupported(const char * name)
|
|
{
|
|
throw Exception(ErrorCodes::ILLEGAL_TYPE_OF_ARGUMENT, "Illegal argument of type DateTime for function {}", name);
|
|
}
|
|
|
|
}
|