mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 20:42:04 +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>>();
|
|
}
|
|
|
|
}
|