final class XmlChecks
Restricted visibility: declared "@visibility SqlSemantics\Platform\PostgreSql". Code outside that scope must not name this declaration.

Reports the SQL/XML constructors the server rejects while analyzing them.

Rule: PG-XML-CHECKS-001. An attribute of XMLELEMENT, or a value of XMLFOREST, without AS takes the name of the column it references, so it must be a column reference; the attribute names of one element, written or taken, are distinct (compared exactly); XMLSERIALIZE produces a character string type: text, character varying or character. 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. Termination: one pass over the values. Status: Implemented.

Methods§

public function attributes(Derivation $derivation, list<XmlAttribute> $attributes): void
public function elements(Derivation $derivation, list<XmlAttribute> $elements): void
public function serialized(Derivation $derivation, TypeFact $type): TypeFact

Private surface 1§

Implementation details, listed for orientation only.

private const SERIALIZED = ['text', 'varchar', 'bpchar']

Test cases 3§

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

Dedicated tests 3

Relations§

Instantiated in 3
Method calls 3