enum XmlProblemKind: string
Public API: explicitly declared with @visibility public.

A mistake in an SQL/XML constructor that the server reports while analyzing the statement.

Each case carries the server's message, with %s for the subject. Source: https://www.postgresql.org/docs/17/functions-xml.html#FUNCTIONS-PRODUCING-XML, transformXmlExpr and transformXmlSerialize in src/backend/parser/parse_expr.c of PostgreSQL 17.

Reading the message of an unnamed attributedoctest
\SqlSemantics\Platform\PostgreSql\Statement\Invocation\Problem\XmlProblemKind::UnnamedAttribute->value // => 'unnamed XML attribute value must be a column reference'

Cases§

case UnnamedAttribute = 'unnamed XML attribute value must be a column reference'
case UnnamedElement = 'unnamed XML element value must be a column reference'
case RepeatedAttribute = 'XML attribute name "%s" appears more than once'
case SerializeTarget = 'cannot cast XMLSERIALIZE result to %s'

Test cases 6§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1
Other tests reaching this symbol 5

Relations§

Constant reads 4
Type declarations 1