Informix Error -26063: Data type not supported with CASE statement of SPL
Cause and resolution
Data type not supported with CASE statement of SPL
The value specified in the CASE statement cannot be of type BLOB, CLOB, BYTE, TEXT, Collection, DISTINCT, or OPAQUE. The BOOLEAN and LVARCHAR types are the only built-in opaque data types that the CASE statement in SPL supports.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26063 fires when an SPL CASE statement's value is of an unsupported data type — per the
official guidance.
- The
CASEvalue isBLOB,CLOB,BYTE,TEXT, a collection,DISTINCT, or anOPAQUEtype, per the official guidance — the direct, only cause;BOOLEANandLVARCHARare the only built-in opaque types the SPLCASEstatement supports.
Solutions / Resolution
- Use a supported data type for the
CASEvalue, per the official guidance —BOOLEAN,LVARCHAR, or an ordinary built-in scalar type.
Examples
A CASE value of an unsupported type
DEFINE b BLOB;
CASE b
...
END CASE;
-- -26063: BLOB isn't supported as a CASE value
Diagnostic Checks
- Check the data type of the value used in the
CASEstatement, and confirm it's notBLOB/CLOB/BYTE/TEXT/a collection/DISTINCT/an unsupportedOPAQUEtype.
Related Errors / Related Topics
- -26062 — "The specified case is not defined in the CASE statement" A related
CASErestriction, on an unmatched value rather than an unsupported data type.
An SPL CASE statement's value was of an unsupported data type — use BOOLEAN,
LVARCHAR, or an ordinary scalar type.