Informix Error -11117: Associated statement is not prepared.
Cause and resolution
Associated statement is not prepared.
This Informix ODBC error code is the same as SQLSTATE value HY007. The following functions can return this error code: SQLCopyDesc, SQLGetDescField, and SQLGetDescRec.
For SQLCopyDesc, SQLGetDescField, and SQLGetDescRec, DescriptorHandle was associated with a StatementHandle as an IRD, and the associated statement handle had not been prepared or executed.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-11117 fires when a descriptor function acts on an IRD whose associated statement hasn't
been prepared or executed — per the official guidance, this is the same as SQLSTATE value
HY007, returnable by SQLCopyDesc, SQLGetDescField, and SQLGetDescRec.
DescriptorHandleassociated with aStatementHandleas an IRD, where that statement hasn't been prepared or executed, per the official guidance — the direct, only cause.
Solutions / Resolution
- Prepare or execute the associated statement before calling the descriptor function, per the official guidance's implication.
Examples
N/A
No specific triggering statement is documented beyond calling a descriptor function on an unprepared statement's IRD.
Diagnostic Checks
- Check whether the statement associated with the descriptor has been prepared or
executed, before calling
SQLCopyDesc/SQLGetDescField/SQLGetDescRecon its IRD.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -11117 in this set yet.
A descriptor function acted on an IRD for a statement that wasn't prepared or executed — prepare/execute it first.