Informix Error -22266: Type not supported by ESQL/language-name for compiler-name.
Cause and resolution
Type not supported by ESQL/language-name for compiler-name.
The type that is specified for the variable is not supported for the compiler name that is used. Check your compiler documentation for valid type declarations.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-22266 fires when a declared variable type isn't supported by the named ESQL language binding for the named compiler — per the official guidance.
- A variable type unsupported by the ESQL language binding/compiler combination in use, per the official guidance — the direct, only cause.
Solutions / Resolution
- Check the compiler documentation for valid type declarations, per the official guidance, and use a supported type.
Examples
N/A
No specific triggering statement is documented beyond an unsupported type for the language/compiler combination.
Diagnostic Checks
- Check the flagged variable's declared type against the named compiler's documentation, and use a supported type instead.
Related Errors / Related Topics
- -22227 — "Invalid COBOL compiler compiler-name." A related compiler-support error, on the compiler itself being unsupported rather than a specific type.
A variable's declared type isn't supported by the ESQL language binding for this compiler — check the compiler documentation for valid types.