Informix Error -11331: Describe Parameter supported only for INSERT and UPDATE statements.
Cause and resolution
Describe Parameter supported only for INSERT and UPDATE statements.
This Informix ODBC error code is the same as SQLSTATE value S1000. The following function can return this error code: SQLDescribeParam.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-11331 fires when SQLDescribeParam is called on a statement that isn't INSERT/UPDATE
— per the official guidance, this is the same as SQLSTATE value S1000.
SQLDescribeParamcalled on a statement type other thanINSERT/UPDATE, per the official guidance — the direct, only cause.
Solutions / Resolution
- Only call
SQLDescribeParamforINSERT/UPDATEstatements, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond calling SQLDescribeParam on an
unsupported statement type.
Diagnostic Checks
- Check the statement type before calling
SQLDescribeParam, and confirm it'sINSERTorUPDATE.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -11331 in this set yet.
SQLDescribeParam was called on a statement that isn't INSERT/UPDATE — it's only
supported for those two.