Informix Error -19835: Cannot create an attached index with a collation different from that of DB_LOCALE.
Cause and resolution
Cannot create an attached index with a collation different from that of DB_LOCALE.
You cannot create an attached index when the collation set differs from that of DB_LOCALE.
Use set collation to change the collation value to the DB_LOCALE value before attempting to create an attached index.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-19835 fires when the session's collation set differs from DB_LOCALE while creating an
attached index — per the official guidance.
- The current collation differing from
DB_LOCALE, per the official guidance — the direct, only cause.
Solutions / Resolution
- Use
SET COLLATIONto change the collation toDB_LOCALE's value before creating the attached index, per the official guidance.
Examples
Aligning collation before creating an attached index
SET COLLATION default;
CREATE INDEX myidx ON mytab(col1) ATTACH TO myfragidx;
Diagnostic Checks
- Compare the session's current collation to
DB_LOCALE, and useSET COLLATIONto align them.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -19835 in this set yet.
The session's collation differs from DB_LOCALE — use SET COLLATION to align them before
creating an attached index.