Informix Error -11058: Column not found.
Cause and resolution
Column not found.
This Informix CLI error code is the same as SQLSTATE value S0022. The following functions can return this error code: SQLExecDirect() and SQLPrepare().
The column cannot be associated with the table in the SQL statement. Verify that you are using an existing table name in your SQL statement.
The SQL statement contained a CREATE INDEX, GRANT, REVOKE, SELECT, DELETE, INSERT, UPDATE, or CREATE TABLE statement, but one or more of the column names did not exist. Use column names that exist already.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-11058 fires when a statement references a column that can't be associated with its
table — per the official guidance, this is the same as SQLSTATE value S0022, returnable by
SQLExecDirect() and SQLPrepare().
- A column reference that doesn't match any column on the named table, per the official guidance — the direct, only cause.
Solutions / Resolution
- Verify you're using an existing table name in the SQL statement, per the official guidance, and confirm the column name matches one it actually has.
Examples
N/A
No specific triggering statement is documented beyond a column that can't be associated with its table.
Diagnostic Checks
- Check the table's actual column list, and confirm the referenced column name matches one exactly.
Related Errors / Related Topics
- -11054 — "Base table not found." A related not-found error, at the table/view level rather than the column level.
- -11057 — "Column already exists." The mirror-image error — a column name that already exists where a new one is expected.
A column couldn't be associated with its table — confirm the table and column names both exist and match.