Informix Error -11063: Program type out of range.
Cause and resolution
Program type out of range.
This Informix CLI error code is the same as SQLSTATE value S1003. The following functions can return this error code: SQLBindCol(), SQLBindParameter(), and SQLGetData().
The Informix CLI C data type (fCType) argument was not a valid Informix CLI C data type or SQL_C_DEFAULT. Set the Informix CLI C data type to a valid value.
For SQLBindCol(), it is also possible that the column number was 0 and the Informix CLI C data type was not SQL_C_BOOKMARK. If the column number is 0, set the Informix CLI C data type to SQL_C_BOOKMARK.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-11063 fires when the fCType argument isn't a valid Informix CLI C data type or
SQL_C_DEFAULT — per the official guidance, this is the same as SQLSTATE value S1003,
returnable by SQLBindCol(), SQLBindParameter(), and SQLGetData().
- An
fCTypevalue that isn't a recognized Informix CLI C data type orSQL_C_DEFAULT, per the official guidance — the direct, only cause.
Solutions / Resolution
- Set the Informix CLI C data type to a valid value, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond an invalid fCType value.
Diagnostic Checks
- Check the
fCTypeargument passed toSQLBindCol()/SQLBindParameter()/SQLGetData(), and confirm it's a valid CLI C data type orSQL_C_DEFAULT.
Related Errors / Related Topics
- -11064 — "SQL data type out of range." The same class of invalid-type-indicator
error, for the SQL data type (
fSqlType) rather than the C data type (fCType).
The fCType argument wasn't a valid CLI C data type or SQL_C_DEFAULT — set it to a valid
value.