Informix Error -11085: Invalid parameter type.
Cause and resolution
Invalid parameter type.
This Informix CLI error code is the same as SQLSTATE value S1105. The following function can return this error code: SQLBindParameter().
The value specified for the argument fParamType is invalid. For a list of valid values for the fParamType parameter, check the Informix CLI Programmer's Manual.
One of the following problems occurred: (1) The fParamType argument was not a valid parameter type, or (2) fParamType was SQL_PARAM_OUTPUT and the parameter is not an output parameter, or (3) fParamType was SQL_PARAM_INPUT and the parameter is an output parameter. Set fParamType to a valid value that corresponds to the type of parameter.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-11085 fires when SQLBindParameter()'s fParamType argument is invalid — per the
official guidance, this is the same as SQLSTATE value S1105.
fParamTypenot a valid parameter type, per the official guidance — the first named case.fParamTypewasSQL_PARAM_OUTPUTbut the parameter isn't an output parameter, per the official guidance — the second named case.fParamTypewasSQL_PARAM_INPUTbut the parameter is an output parameter, per the official guidance — the third named case.
Solutions / Resolution
- Set
fParamTypeto a valid value matching the parameter's actual type, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond a mismatched fParamType value.
Diagnostic Checks
- Check whether the parameter is actually input or output, and confirm
fParamTypematches.
Related Errors / Related Topics
- -11084 — "Invalid precision value." A related
SQLBindParameter()argument-validity error, oncbColDefrather thanfParamType.
SQLBindParameter()'s fParamType argument didn't match the parameter's actual
input/output direction — set it to the correct value.