Informix Error -11064: SQL data type out of range.
Cause and resolution
SQL data type out of range.
This Informix CLI error code is the same as SQLSTATE value S1004. The following functions can return this error code: SQLBindParameter() and SQLGetTypeInfo().
The value specified for the argument fSqlType is in the block of numbers reserved for CLI SQL data type indicators but is not a valid ODBC SQL data type indicator. Check that you are referring to an ODBC SQL data type that this driver and this server support.
The Informix CLI SQL data type (fSqlType) argument was not a valid Informix CLI SQL data type. Set Informix CLI SQL data type to a valid value.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-11064 fires when the fSqlType argument is in the reserved CLI SQL-data-type block but
isn't a valid ODBC SQL data type indicator — per the official guidance, this is the same as
SQLSTATE value S1004, returnable by SQLBindParameter() and SQLGetTypeInfo().
fSqlTypefalling in the reserved indicator range without naming a real ODBC SQL data type, per the official guidance — the direct, only cause.
Solutions / Resolution
- Confirm the ODBC SQL data type is one both the driver and server support, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond an invalid fSqlType value.
Diagnostic Checks
- Check the
fSqlTypeargument passed toSQLBindParameter()/SQLGetTypeInfo(), and confirm it names an ODBC SQL data type the driver and server both support.
Related Errors / Related Topics
- -11063 — "Program type out of range." The same class of invalid-type-indicator error,
for the C data type (
fCType) rather than the SQL data type (fSqlType).
The fSqlType argument didn't name a valid, supported ODBC SQL data type — check driver and
server support for it.