enumXmlProblemKind
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.
\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
- class-const SqlSemantics\Platform\PostgreSql\Rules\Invocation\XmlChecks::attributes() packages/sql-semantics-postgres/src/Rules/Invocation/XmlChecks.php:48
- class-const SqlSemantics\Platform\PostgreSql\Rules\Invocation\XmlChecks::attributes() packages/sql-semantics-postgres/src/Rules/Invocation/XmlChecks.php:52
- class-const SqlSemantics\Platform\PostgreSql\Rules\Invocation\XmlChecks::elements() packages/sql-semantics-postgres/src/Rules/Invocation/XmlChecks.php:67
- class-const SqlSemantics\Platform\PostgreSql\Rules\Invocation\XmlChecks::serialized() packages/sql-semantics-postgres/src/Rules/Invocation/XmlChecks.php:83