Informix Error -11116: Invalid application buffer type
Cause and resolution
Invalid application buffer type
This Informix ODBC error code is the same as SQLSTATE value HY003. The following functions can return this error code: SQLBindCol, SQLBindParameter, and SQLGetData.
For SQLBindCol and SQLGetData, the argument TargetType was neither a valid data type nor SQL_C_DEFAULT.
For SQLBindParameter, the value specified by the argument ValueType was not a valid C data type or SQL_C_DEFAULT.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-11116 fires when a C data type argument isn't valid — per the official guidance, this is
the same as SQLSTATE value HY003, returnable by SQLBindCol, SQLBindParameter, and
SQLGetData.
- For
SQLBindCol/SQLGetData:TargetTypewasn't a valid data type orSQL_C_DEFAULT, per the official guidance — the first named case. - For
SQLBindParameter:ValueTypewasn't a valid C data type orSQL_C_DEFAULT, per the official guidance — the second named case.
Solutions / Resolution
- Set the type argument to a valid C data type or
SQL_C_DEFAULT, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond an invalid TargetType/ValueType
value.
Diagnostic Checks
- Check the
TargetType/ValueTypeargument passed toSQLBindCol/SQLGetData/SQLBindParameter, and confirm it's a valid C data type orSQL_C_DEFAULT.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -11116 in this set yet.
A TargetType/ValueType argument wasn't a valid C data type or SQL_C_DEFAULT — set it to
a valid value.