Informix Error -11002: Disconnect error.
Cause and resolution
Disconnect error.
This Informix CLI error code is the same as SQLSTATE value 01002. The following function can return this error code: SQLDisconnect().
The function returned SQL_SUCCESS_WITH_INFO, which means that the function completed successfully, and that a nonfatal error occurred. For more information, call SQLError().
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-11002 fires when SQLDisconnect() returns SQL_SUCCESS_WITH_INFO — per the official
guidance, this is the same as SQLSTATE value 01002.
- A nonfatal error during an otherwise-successful
SQLDisconnect()call, per the official guidance — the direct, only cause.
Solutions / Resolution
- Call
SQLError()for the full warning text, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond a nonfatal SQLDisconnect() warning.
Diagnostic Checks
- Call
SQLError()immediately afterSQLDisconnect()returnsSQL_SUCCESS_WITH_INFO, and review the detailed warning text.
Related Errors / Related Topics
- -11017 — "Connection not open." A related connection-lifecycle error, about acting on a connection that was never successfully opened, rather than a warning during disconnect.
SQLDisconnect() completed with a nonfatal warning — call SQLError() for detail.