Informix Error -11320: Syntax Error
Cause and resolution
Syntax Error
This Informix ODBC error code is the same as SQLSTATE value S1000. The following functions can return this error code: SQLNativeSQL, SQLExecDirect, and SQLPrepare.
Check your statement string for syntax error. Consult ODBC Reference Manual for SQL syntax.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-11320 fires when a statement string has a syntax error — per the official guidance, this
is the same as SQLSTATE value S1000, returnable by SQLNativeSQL, SQLExecDirect, and
SQLPrepare.
- A syntax error in the statement string, per the official guidance — the direct, only cause.
Solutions / Resolution
- Check the statement string for a syntax error, per the official guidance.
- Consult the ODBC Reference Manual for SQL syntax, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond a syntax error.
Diagnostic Checks
- Review the statement string against the ODBC/SQL syntax reference, and correct any errors found.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -11320 in this set yet.
The statement string has a syntax error — check it against the ODBC Reference Manual's SQL syntax.