Informix Error -50996: [Informix][Connectivity Class Library]Column out of range in call to ixSQLStmt::describeCol().
Cause and resolution
[Informix][Connectivity Class Library]Column out of range in call to ixSQLStmt::describeCol().
The column requested is either negative or greater than the number of columns in the result set.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-50996 is a Connectivity Class Library (ixSQLStmt/ixSQLConnect C++ class API) message — per the official guidance, the dialog reads "[Informix][Connectivity Class Library]Column out of range in call to ixSQLStmt::describeCol().".
- The column requested is either negative or greater than the number of columns in the result set., per the official guidance.
Solutions / Resolution
- [Informix][Connectivity Class Library]Column out of range in call to ixSQLStmt::describeCol()., per the official guidance.
Examples
N/A
No specific triggering SQL statement applies — this is a Connectivity Class Library runtime message rather than a database-engine error.
Diagnostic Checks
- Confirm the exact circumstance described in the official text before taking corrective action — the dialog's own wording ("[Informix][Connectivity Class Library]Column out of range in call to i…") is usually specific enough to act on directly.
- Confirm the ixSQLStmt/ixSQLConnect call sequence matches the order the API requires (e.g.
prepare()/execDirect()before describe-style calls).
Related Errors / Related Topics
- -50995 — "[Informix][Connectivity Class Library]Function sequence error: The ixSQLStmt describeCol()…" A related Connectivity Class Library message.
- -50997 — "[Informix][Connectivity Class Library]Function sequence error: The ixSQLStmt::describe() m…" A related Connectivity Class Library message.
[Informix][Connectivity Class Library]Column out of range in call to ixSQLStmt::describeCol().