Informix Error -11014: Invalid use of default parameter.
Cause and resolution
Invalid use of default parameter.
This Informix CLI error code is the same as SQLSTATE value 07S01. The following functions can return this error code: SQLExecDirect(), SQLExecute(), and SQLPutData().
You used SQL_DEFAULT_PARAM and the corresponding parameter does not have a default value. Use SQL_DEFAULT_PARAM only if the corresponding parameter has a default value.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-11014 fires when SQL_DEFAULT_PARAM is used for a parameter that has no default value —
per the official guidance, this is the same as SQLSTATE value 07S01, returnable by
SQLExecDirect(), SQLExecute(), and SQLPutData().
SQL_DEFAULT_PARAMused on a parameter without a corresponding default value, per the official guidance — the direct, only cause.
Solutions / Resolution
- Use
SQL_DEFAULT_PARAMonly for parameters that actually have a default value, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond SQL_DEFAULT_PARAM on a
no-default parameter.
Diagnostic Checks
- Check which parameters actually have a default value defined, and only pass
SQL_DEFAULT_PARAMfor those.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -11014 in this set yet.
SQL_DEFAULT_PARAM was used for a parameter without a default value — only use it where a
default actually exists.