MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / setParameterInfo

Function setParameterInfo

src/dsql/ExprNodes.cpp:14022–14039  ·  view source on GitHub ↗

Set parameter info based on a context.

Source from the content-addressed store, hash-verified

14020
14021// Set parameter info based on a context.
14022static void setParameterInfo(dsql_par* parameter, const dsql_ctx* context)
14023{
14024 if (!context)
14025 return;
14026
14027 if (context->ctx_relation)
14028 {
14029 parameter->par_rel_name = context->ctx_relation->rel_name.c_str();
14030 parameter->par_owner_name = context->ctx_relation->rel_owner.c_str();
14031 }
14032 else if (context->ctx_procedure)
14033 {
14034 parameter->par_rel_name = context->ctx_procedure->prc_name.identifier.c_str();
14035 parameter->par_owner_name = context->ctx_procedure->prc_owner.c_str();
14036 }
14037
14038 parameter->par_rel_alias = context->ctx_alias.c_str();
14039}
14040
14041
14042} // namespace Jrd

Callers 1

setParameterNameMethod · 0.85

Calls 1

c_strMethod · 0.45

Tested by

no test coverage detected