Informix Error -26036: Cannot use the WITH VERCOLS clause because the table already has version columns.
Cause and resolution
Cannot use the WITH VERCOLS clause because the table already has version columns.
The table already has version columns created by the WITH VERCOLS clause. You cannot add additional version columns.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26036 fires when WITH VERCOLS is used on a table that already has version columns — per
the official guidance.
- The table already has version columns created by an earlier
WITH VERCOLSclause, per the official guidance — the direct, only cause; a table can't have additional version columns added.
Solutions / Resolution
- Don't reapply
WITH VERCOLSto a table that already has version columns, per the official guidance.
Examples
Reapplying WITH VERCOLS
ALTER TABLE orders ADD (region_id INT) WITH VERCOLS;
-- -26036: orders already has version columns
Diagnostic Checks
- Check the table's columns for existing version columns, and skip
WITH VERCOLSif already present.
Related Errors / Related Topics
- -26037 — "Cannot drop VERCOLS when table does not have version columns." The mirror- image restriction, on dropping version columns that don't exist rather than adding version columns that already do.
WITH VERCOLS was used on a table that already has version columns — don't reapply it.