Informix Error -26037: Cannot drop VERCOLS when table does not have version columns.
Cause and resolution
Cannot drop VERCOLS when table does not have version columns.
The table that you were attempting to alter does not have VERCOLS columns.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26037 fires when dropping version columns is attempted on a table that doesn't have them — per the official guidance.
- The table being altered doesn't have
VERCOLScolumns, per the official guidance — the direct, only cause.
Solutions / Resolution
- Don't attempt to drop version columns from a table that doesn't have them, per the official guidance.
Examples
Dropping VERCOLS from a table without them
ALTER TABLE orders DROP VERCOLS;
-- -26037: orders was never created/altered WITH VERCOLS
Diagnostic Checks
- Check the table's columns for existing version columns, and skip the
DROP VERCOLSif none are present.
Related Errors / Related Topics
- -26036 — "Cannot use the WITH VERCOLS clause because the table already has version columns." The mirror-image restriction, on adding version columns that already exist rather than dropping version columns that don't.
DROP VERCOLS was attempted on a table without version columns — nothing to drop.