Informix Error -11040: Driver does not support this function.
Cause and resolution
Driver does not support this function.
This Informix CLI error code is the same as SQLSTATE value IM001. The following functions can return this error code: all ODBC functions except SQLAllocEnv(), SQLDataSources(), SQLDrivers(), SQLError(), SQLFreeConnect(), SQLFreeEnv(), and SQLGetFunctions().
Informix CLI does not support this function. Do not call this function.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-11040 fires when an unsupported ODBC/CLI function is called — per the official guidance,
this is the same as SQLSTATE value IM001, returnable by essentially all ODBC functions
except SQLAllocEnv(), SQLDataSources(), SQLDrivers(), SQLError(),
SQLFreeConnect(), SQLFreeEnv(), and SQLGetFunctions().
- Calling a function Informix CLI doesn't support, per the official guidance — the direct, only cause.
Solutions / Resolution
- Don't call this function, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond calling an unsupported function.
Diagnostic Checks
- Call
SQLGetFunctions()to check which functions the driver actually supports, before relying on any given one.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -11040 in this set yet.
An unsupported CLI function was called — check SQLGetFunctions() for driver support before
calling it.