mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 17:02:25 +00:00
aa7e62ad5f
- makes it consistent with tryBase64Decode(), follow-up to #39292 - additionally the following minor changes: - rename Common/base58.h|cpp to Common/Base58.h|cpp for constency with Common/Base64.h|cpp - check that (encode|decode|tryDecode)Base64() gets just one argument
25 lines
492 B
C++
25 lines
492 B
C++
#include <Functions/FunctionBase58Conversion.h>
|
|
#include <Functions/FunctionFactory.h>
|
|
|
|
namespace DB
|
|
{
|
|
namespace
|
|
{
|
|
|
|
struct NameTryBase58Decode
|
|
{
|
|
static constexpr auto name = "tryBase58Decode";
|
|
};
|
|
|
|
using TryBase58DecodeImpl = Base58Decode<NameTryBase58Decode, Base58DecodeErrorHandling::ReturnEmptyString>;
|
|
using FunctionTryBase58Decode = FunctionBase58Conversion<TryBase58DecodeImpl>;
|
|
|
|
}
|
|
|
|
REGISTER_FUNCTION(TryBase58Decode)
|
|
{
|
|
factory.registerFunction<FunctionTryBase58Decode>();
|
|
}
|
|
|
|
}
|