Informix Error -26920: The default value is longer than 256 bytes.
Cause and resolution
The default value is longer than 256 bytes.
The maximum length of the default value cannot exceed 256 bytes.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26920 fires when a column default value in a DDL statement is longer than the 256-byte maximum.
- The DEFAULT value in CREATE TABLE or ALTER TABLE exceeds 256 bytes, per the official guidance — the direct, only cause.
Solutions / Resolution
- Shorten the default value to 256 bytes or fewer, or drop the DEFAULT clause and supply the value from the application or a trigger.
Diagnostic Checks
- Check the length in bytes of the literal in the DEFAULT clause (multibyte locales use more bytes than characters).
Related Errors / Related Topics
No closely related error codes are cross-referenced for -26920 in this set yet.
A column default value cannot exceed 256 bytes — shorten it.