mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 10:52:30 +00:00
19 lines
655 B
C++
19 lines
655 B
C++
#include <Functions/FunctionFactory.h>
|
|
#include <Functions/CastOverloadResolver.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
REGISTER_FUNCTION(CastOverloadResolvers)
|
|
{
|
|
factory.registerFunction<CastInternalOverloadResolver<CastType::nonAccurate>>({}, FunctionFactory::CaseInsensitive);
|
|
/// Note: "internal" (not affected by null preserving setting) versions of accurate cast functions are unneeded.
|
|
|
|
factory.registerFunction<CastOverloadResolver<CastType::nonAccurate>>({}, FunctionFactory::CaseInsensitive);
|
|
factory.registerFunction<CastOverloadResolver<CastType::accurate>>();
|
|
factory.registerFunction<CastOverloadResolver<CastType::accurateOrNull>>();
|
|
}
|
|
|
|
}
|