Set parameter info based on a context.
| 14020 | |
| 14021 | // Set parameter info based on a context. |
| 14022 | static 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 |