ClickHouse/src/Functions/base64Decode.cpp

19 lines
477 B
C++
Raw Normal View History

2018-10-11 16:22:50 +00:00
#include <Functions/FunctionBase64Conversion.h>
#if USE_BASE64
2019-06-20 09:12:49 +00:00
#include <Functions/FunctionFactory.h>
2018-10-10 01:04:07 +00:00
#include <DataTypes/DataTypeString.h>
2019-12-29 01:13:17 +00:00
2018-10-10 01:04:07 +00:00
namespace DB
{
2018-10-12 08:46:53 +00:00
void registerFunctionBase64Decode(FunctionFactory & factory)
2018-10-10 01:04:07 +00:00
{
2019-12-28 00:18:08 +00:00
tb64ini(0, 1);
2018-10-10 01:04:07 +00:00
factory.registerFunction<FunctionBase64Conversion<Base64Decode>>();
/// MysQL compatibility alias.
factory.registerFunction<FunctionBase64Conversion<Base64Decode>>("FROM_BASE64", FunctionFactory::CaseInsensitive);
2018-10-10 01:04:07 +00:00
}
2018-10-11 16:22:50 +00:00
}
2018-11-23 18:54:23 +00:00
#endif