2018-10-11 16:22:50 +00:00
|
|
|
#include <Functions/FunctionBase64Conversion.h>
|
2022-10-13 22:28:25 +00:00
|
|
|
|
2018-10-11 16:22:50 +00:00
|
|
|
#if USE_BASE64
|
2019-06-20 09:12:49 +00:00
|
|
|
#include <Functions/FunctionFactory.h>
|
2018-10-10 01:04:07 +00:00
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
2022-07-04 07:01:39 +00:00
|
|
|
REGISTER_FUNCTION(Base64Decode)
|
2018-10-10 01:04:07 +00:00
|
|
|
{
|
2024-06-10 10:14:45 +00:00
|
|
|
factory.registerFunction<FunctionBase64Conversion<Base64Decode<Base64Variant::Normal>>>();
|
2024-06-10 12:16:03 +00:00
|
|
|
factory.registerFunction<FunctionBase64Conversion<Base64Decode<Base64Variant::Url>>>();
|
2021-01-21 20:36:26 +00:00
|
|
|
|
2023-09-09 16:48:17 +00:00
|
|
|
/// MySQL compatibility alias.
|
2022-08-27 21:53:51 +00:00
|
|
|
factory.registerAlias("FROM_BASE64", "base64Decode", FunctionFactory::CaseInsensitive);
|
2018-10-10 01:04:07 +00:00
|
|
|
}
|
2018-10-11 16:22:50 +00:00
|
|
|
}
|
2022-10-13 22:28:25 +00:00
|
|
|
|
2018-11-23 18:54:23 +00:00
|
|
|
#endif
|