Start of change

-16080 AN XQUERY expression-type UPDATING EXPRESSION IS USED IN AN INVALID CONTEXT. ERROR QNAME=err:XUST0001.

Explanation

An updating expression is specified in an invalid context.

expression-type
The type of expression.

Only the following contexts are valid:

  • The xquery-update-constant of an XMLMODIFY function.
  • The return clause of a FLWOR expression.
  • The then and else clauses of a conditional statement. The then and else clauses must contain either an updating expression or an empty sequence expression.
  • An operand of a comma expression. The operand must be either an updating expression or an empty sequence expression.

System action

The XQuery expression cannot be processed.

Programmer response

Correct the expression that is indicated by expression-type. Use expression-type only in contexts that allow an updating expression.

SQLSTATE

10701

End of change