Merge pull request #26022 from kitaisreal/function-sql-json-context-ptr-build-fix

FunctionSQLJSON ContextPtr build fix
This commit is contained in:
alesapin 2021-07-06 13:48:36 +03:00 committed by GitHub
commit 9b01ded17a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,8 +144,8 @@ template <typename Name, template <typename> typename Impl>
class FunctionSQLJSON : public IFunction, WithConstContext
{
public:
static FunctionPtr create(ContextConstPtr context_) { return std::make_shared<FunctionSQLJSON>(context_); }
FunctionSQLJSON(ContextConstPtr context_) : WithConstContext(context_) { }
static FunctionPtr create(ContextPtr context_) { return std::make_shared<FunctionSQLJSON>(context_); }
explicit FunctionSQLJSON(ContextPtr context_) : WithConstContext(context_) { }
static constexpr auto name = Name::name;
String getName() const override { return Name::name; }