enumJsonProblemKind
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.
\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
JsonChecksTest::testInputReportsAnEncodingOnANonByteaValuecallsJsonChecksTest::testQueryReportsFormatInReturningAndQuotesWithWrappercallsJsonArrayQueryTest::testDeriveScalarReportsAQueryOfSeveralColumnscallsJsonProblemTest::testMessageNamesTheSubjectscallsJsonProblemTest::testRejectsAMissingSubjectcalls
Relations§
Constant reads 7
- class-const SqlSemantics\Platform\PostgreSql\Rules\Invocation\JsonChecks::input() packages/sql-semantics-postgres/src/Rules/Invocation/JsonChecks.php:61
- class-const SqlSemantics\Platform\PostgreSql\Rules\Invocation\JsonChecks::input() packages/sql-semantics-postgres/src/Rules/Invocation/JsonChecks.php:61
- class-const SqlSemantics\Platform\PostgreSql\Rules\Invocation\JsonChecks::query() packages/sql-semantics-postgres/src/Rules/Invocation/JsonChecks.php:72
- class-const SqlSemantics\Platform\PostgreSql\Rules\Invocation\JsonChecks::query() packages/sql-semantics-postgres/src/Rules/Invocation/JsonChecks.php:75
- class-const SqlSemantics\Platform\PostgreSql\Rules\Invocation\JsonChecks::behaviors() packages/sql-semantics-postgres/src/Rules/Invocation/JsonChecks.php:90
- class-const SqlSemantics\Platform\PostgreSql\Rules\Invocation\JsonChecks::behaviors() packages/sql-semantics-postgres/src/Rules/Invocation/JsonChecks.php:91
- class-const SqlSemantics\Platform\PostgreSql\Statement\Invocation\Json\Constructor\JsonArrayQuery::deriveScalar() packages/sql-semantics-postgres/src/Statement/Invocation/Json/Constructor/JsonArrayQuery.php:66