Start of change

-16033   THE TARGET DATA TYPE type-name OF A CASTABLE EXPRESSION IS NOT AN ATOMIC DATA TYPE DEFINED FOR THE IN-SCOPE XML SCHEMA TYPES OR IS A DATA TYPE THAT CANNOT BE USED IN A CASTABLE EXPRESSION. ERROR QNAME=err:XPST0080

Explanation

The castable expression specifies a target data type that cannot be used. The predefined XML schema types xs:anySimpleType and xdt:anyAtomicType cannot be used as the target type of a castable expression. If the data type is not one of these restricted types, then either the data type is not defined for the in-scope XML schema types or the data type is not an atomic type.

type-name
The name of the target data type used in the expression.

System action

The XQuery expression is not processed.

User response

No action is required.

Programmer response

If the target data type is xs:anySimpleType or xdt:anyAtomicType, specify a different target data type or remove the castable expression.

If the target data type is not defined by the in-scope XML types, specify a data type that is in scope or change the XML schema to include the data type.

If the target data type is not atomic, specify a different target data type or remove the castable expression.

SQLSTATE

10507

End of change