Informix Error -25726: Attempt to drop non-existent modifier <modifier>. </modifier>
Cause and resolution
Attempt to drop non-existent modifier <modifier>. </modifier>
The modifier that you supplied in the DROP <modifier> clause of ALTER OPAQUE TYPE is not a modifier for that opaque type. You cannot drop a modifier that is not present. </modifier>
Correct your ALTER OPAQUE TYPE statement. To find the modifiers that are associated with the opaque type, use the following statement:
SELECT * from sysxtdtypes WHERE name = <opaque_type_name>. </opaque_type_name>
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-25726 fires when ALTER OPAQUE TYPE ... DROP <modifier> names a modifier the type
doesn't have — per the official guidance.
DROP <modifier>naming a modifier not present on the opaque type, per the official guidance — the direct, only cause.
Solutions / Resolution
- Correct the
ALTER OPAQUE TYPEstatement, per the official guidance, checkingsysxtdtypesfor the type's actual modifiers first.
Examples
Checking a type's current modifiers
SELECT * FROM sysxtdtypes WHERE name = 'my_opaque_type';
Diagnostic Checks
- Query
sysxtdtypesfor the opaque type's actual modifiers, and correct theDROPclause to name one that's actually present.
Related Errors / Related Topics
- -25725 — "Attempt to add duplicate modifier
." The mirror-image error, for adding a modifier that's already present.
ALTER OPAQUE TYPE ... DROP named a modifier the type doesn't have — check sysxtdtypes
for its actual modifiers.