Informix Error -4655
Cause and resolution
Invalid range specified for VARCHAR.
The declaration of the fort VARCHAR (maximum, reserved) has incorrectly specified a value for reserved that is not between 0 and maximum, inclusive.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-4655 fires when a VARCHAR(maximum, reserved) declaration's reserved value isn't between 0
and maximum, inclusive — per the official guidance.
reservedless than 0, per the official guidance — the first named case.reservedgreater thanmaximum, per the official guidance — the second named case.
Solutions / Resolution
- Correct
reservedso it falls between 0 andmaximum, inclusive, per the official guidance.
Examples
An out-of-range reserved value
DEFINE notes VARCHAR(100, 150)
-- -4655: reserved (150) exceeds maximum (100)
Corrected
DEFINE notes VARCHAR(100, 20)
Diagnostic Checks
- Check every
VARCHAR(maximum, reserved)declaration, and confirmreservedis between 0 andmaximum, inclusive.
Related Errors / Related Topics
- -4638 — "The maximum size for varchar must be between 1 and 255." A related
VARCHARdeclaration error, about themaximumvalue's own range rather thanreserved.
A VARCHAR(maximum, reserved) declaration's reserved value is outside 0 to maximum —
correct it to fall within that range.