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

A mistake in an SQL/JSON expression that the server reports while analyzing the statement.

Each case carries the server's message, with %s for its subjects in order. Source: https://www.postgresql.org/docs/17/functions-json.html#FUNCTIONS-SQLJSON-QUERYING, transformJsonFuncExpr and transformJsonValueExpr in src/backend/parser/parse_expr.c of PostgreSQL 17.

Reading the message of quotes with a wrapperdoctest
\SqlSemantics\Platform\PostgreSql\Statement\Invocation\Problem\JsonProblemKind::QuotesWithWrapper->value // => 'SQL/JSON QUOTES behavior must not be specified when WITH WRAPPER is used'

Cases§

case InvalidBehavior = 'invalid %s behavior'
case InvalidColumnBehavior = 'invalid %s behavior for column "%s"'
case QuotesWithWrapper = 'SQL/JSON QUOTES behavior must not be specified when WITH WRAPPER is used'
case FormatInReturning = 'cannot specify FORMAT JSON in RETURNING clause of %s()'
case EncodingWithoutBytea = 'JSON ENCODING clause is only allowed for bytea input type'
case SubqueryColumns = 'subquery must return only one column'
case ParsedEncodingWithoutBytea = 'cannot use JSON FORMAT ENCODING clause for non-bytea input types'

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 7
Type declarations 1