Informix Error -35225: Object reference, object name, cannot appear in a dynamic cursor declaration.
Cause and resolution
Object reference, object name, cannot appear in a dynamic cursor declaration.
Remove the referenced object from the dynamic cursor declaration.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-35225 fires when an object reference appears inside a dynamic cursor declaration — per the official guidance, this isn't a supported construct there.
- An object reference placed inside a dynamic cursor declaration, per the official guidance — the direct, only cause.
Solutions / Resolution
- Remove the referenced object from the dynamic cursor declaration, per the official guidance — the documented, only fix.
Examples
N/A
No specific triggering statement is documented beyond an object reference placed in a dynamic cursor declaration.
Diagnostic Checks
- Check the dynamic cursor declaration for an object reference and remove it.
Related Errors / Related Topics
- -35224 — "INTO phrase cannot appear within a DECLARE CURSOR statement." A related restriction on what may appear inside a cursor declaration.
- -35201 — "Cursor name must be an identifier." Another cursor-declaration error.
- -35213 — "No cursor declaration for procedure name." A related cursor-usage error.
An object reference was placed inside a dynamic cursor declaration, which isn't supported there — remove it from the declaration.