Informix Error -47090: Cannot specify today as a default value with this column type.
Cause and resolution
Cannot specify today as a default value with this column type.
You cannot specify a default value that consists of the current system date for a column when the column data type is not DATE. Change the column data type (if permitted), or specify a different default value.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-47090 fires in the interactive ALTER TABLE menu when a TODAY-based default value is
specified for a non-DATE column — per the official guidance.
TODAYspecified as a default value for a non-DATEcolumn, per the official guidance — the direct, only cause.
Solutions / Resolution
- Change the column's data type to
DATE, if permitted, per the official guidance. - Or specify a different default value, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond this menu-driven default-value restriction.
Diagnostic Checks
- Check the column's data type, and either change it to
DATEor choose a different default value.
Related Errors / Related Topics
- -47086 — "Cannot specify current as default value with non-datetime column type." A
related default-value/type-mismatch error, for
CURRENTandDATETIMEcolumns rather thanTODAYandDATE.
TODAY can only be a default value for a DATE column — change the type or choose a
different default.