Informix Error -1825: INSERT and DELETE cannot be performed on ROW host variables.
Cause and resolution
INSERT and DELETE cannot be performed on ROW host variables.
Only UPDATE and SELECT statements can be used with row host variables. Check the derived table syntax that is using the row host variable and use UPDATE or SELECT instead.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-1825 fires when INSERT or DELETE is attempted using row host variable (derived-table)
syntax — per the official guidance, only UPDATE and SELECT are compatible with row host
variables.
INSERT/DELETEused with row host variable/derived-table syntax, per the official guidance — the direct, only cause.
Solutions / Resolution
- Modify the derived table syntax to use
UPDATEorSELECTinstead, per the official guidance.
Examples
DELETE attempted on a row host variable
EXEC SQL DELETE FROM TABLE(:order_row) AS t;
-- -1825: DELETE isn't supported with row host variable syntax
Corrected — use SELECT or UPDATE instead
EXEC SQL SELECT * FROM TABLE(:order_row) AS t;
Diagnostic Checks
- Check whether the failing statement is
INSERT/DELETEagainst row host variable syntax, and switch toSELECT/UPDATEif the operation allows it.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -1825 in this set yet.
Row host variable (derived-table) syntax only supports UPDATE/SELECT, not INSERT/DELETE.