Informix Error -22284: Incorrect levels of indirection on variable variable-name.
Cause and resolution
Incorrect levels of indirection on variable variable-name.
A pointer variable is used with the wrong number of level indirection. Check the indirection levels in the ESQL statement.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-22284 fires when a pointer variable is used with the wrong number of levels of indirection — per the official guidance.
- A pointer variable used with an incorrect indirection level, per the official guidance — the direct, only cause.
Solutions / Resolution
- Check the indirection levels in the ESQL statement, per the official guidance, and correct them to match the variable's actual pointer depth.
Examples
N/A
No specific triggering statement is documented beyond a mismatched indirection level.
Diagnostic Checks
- Check the flagged variable's declared pointer depth, and confirm the ESQL statement's indirection matches it.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -22284 in this set yet.
A pointer variable was used with the wrong number of indirection levels — correct the ESQL statement to match its actual pointer depth.