classJsonProblem
final class JsonProblem
implements Diagnostic
uses Snapshot
Public API: explicitly declared with
@visibility public.An SQL/JSON expression the server rejects.
(new \SqlSemantics\Platform\PostgreSql\Statement\Invocation\Problem\JsonProblem(\SqlSemantics\Platform\PostgreSql\Statement\Invocation\Problem\JsonProblemKind::InvalidBehavior, ['ON ERROR']))->message() // => 'invalid ON ERROR behavior'Properties§
public list<string> $subjectspublic JsonProblemKind $kindMethods§
public function __construct(public JsonProblemKind $kind, list<string> $subjects = [])Parameters
$kind | JsonProblemKind | The mistake |
$subjects | list<string> | The clause, column or function names the message names, in order |
Calls 3
- static-call Check::input() line 37
- function-call
countline 37 - function-call
substr_countline 37
public function message(): stringDescribes the problem as the server does.
Returns
stringTest cases 1
Calls 1
- function-call
vsprintfline 46
Test cases 5§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
Other tests reaching this symbol 3
Relations§
Instantiated in 6
- new SqlSemantics\Platform\PostgreSql\Rules\Invocation\JsonChecks::input() packages/sql-semantics-postgres/src/Rules/Invocation/JsonChecks.php:61
- new SqlSemantics\Platform\PostgreSql\Rules\Invocation\JsonChecks::query() packages/sql-semantics-postgres/src/Rules/Invocation/JsonChecks.php:72
- new SqlSemantics\Platform\PostgreSql\Rules\Invocation\JsonChecks::query() packages/sql-semantics-postgres/src/Rules/Invocation/JsonChecks.php:75
- new SqlSemantics\Platform\PostgreSql\Rules\Invocation\JsonChecks::behaviors() packages/sql-semantics-postgres/src/Rules/Invocation/JsonChecks.php:90
- new SqlSemantics\Platform\PostgreSql\Rules\Invocation\JsonChecks::behaviors() packages/sql-semantics-postgres/src/Rules/Invocation/JsonChecks.php:91
- new SqlSemantics\Platform\PostgreSql\Statement\Invocation\Json\Constructor\JsonArrayQuery::deriveScalar() packages/sql-semantics-postgres/src/Statement/Invocation/Json/Constructor/JsonArrayQuery.php:66