2021-08-11 19:09:51 +00:00
|
|
|
#include <Functions/FunctionFactory.h>
|
|
|
|
#include <Functions/CastOverloadResolver.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
2022-07-04 07:01:39 +00:00
|
|
|
REGISTER_FUNCTION(CastOverloadResolvers)
|
2021-08-11 19:09:51 +00:00
|
|
|
{
|
2022-08-27 20:06:03 +00:00
|
|
|
factory.registerFunction<CastInternalOverloadResolver<CastType::nonAccurate>>({}, FunctionFactory::CaseInsensitive);
|
2022-08-26 19:27:30 +00:00
|
|
|
/// Note: "internal" (not affected by null preserving setting) versions of accurate cast functions are unneeded.
|
2021-08-11 19:09:51 +00:00
|
|
|
|
2022-08-27 20:06:03 +00:00
|
|
|
factory.registerFunction<CastOverloadResolver<CastType::nonAccurate>>({}, FunctionFactory::CaseInsensitive);
|
2021-08-11 19:09:51 +00:00
|
|
|
factory.registerFunction<CastOverloadResolver<CastType::accurate>>();
|
|
|
|
factory.registerFunction<CastOverloadResolver<CastType::accurateOrNull>>();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|