MCPcopy Create free account
hub / github.com/duckdb/duckdb / BindScalarFunction

Method BindScalarFunction

src/function/function_binder.cpp:311–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309}
310
311unique_ptr<Expression> FunctionBinder::BindScalarFunction(const string &schema, const string &name,
312 vector<unique_ptr<Expression>> children, ErrorData &error,
313 bool is_operator, optional_ptr<Binder> binder) {
314 // bind the function
315 auto &function = Catalog::GetSystemCatalog(context).GetEntry<ScalarFunctionCatalogEntry>(context, schema, name);
316 D_ASSERT(function.type == CatalogType::SCALAR_FUNCTION_ENTRY);
317 return BindScalarFunction(function, std::move(children), error, is_operator, binder);
318}
319
320unique_ptr<Expression> FunctionBinder::BindScalarFunction(ScalarFunctionCatalogEntry &func,
321 vector<unique_ptr<Expression>> children, ErrorData &error,

Callers

nothing calls this directly

Calls 15

InternalExceptionClass · 0.85
HandleCollationsFunction · 0.85
GetFunctionByOffsetMethod · 0.80
GetNullHandlingMethod · 0.80
ValueClass · 0.50

Tested by

no test coverage detected