in bind.c [1024:1053]
void SC_param_next(const StatementClass *stmt, int *param_number, ParameterInfoClass **apara, ParameterImplClass **ipara)
{
int next;
IPDFields *ipdopts = SC_get_IPDF(stmt);
if (*param_number < 0)
next = stmt->proc_return;
else
next = *param_number + 1;
if (stmt->discard_output_params)
{
for (;next < ipdopts->allocated && SQL_PARAM_OUTPUT == ipdopts->parameters[next].paramType; next++) ;
}
*param_number = next;
if (ipara)
{
if (next < ipdopts->allocated)
*ipara = ipdopts->parameters + next;
else
*ipara = NULL;
}
if (apara)
{
APDFields *apdopts = SC_get_APDF(stmt);
if (next < apdopts->allocated)
*apara = apdopts->parameters + next;
else
*apara = NULL;
}
}