classWindowProblem
final class WindowProblem
implements Diagnostic
uses Snapshot
Public API: explicitly declared with
@visibility public.A window specification the server rejects.
(new \SqlSemantics\Platform\PostgreSql\Statement\Invocation\Problem\WindowProblem(\SqlSemantics\Platform\PostgreSql\Statement\Invocation\Problem\WindowProblemKind::RangeOffsetOrder))->message() // => 'RANGE with offset PRECEDING/FOLLOWING requires exactly one ORDER BY column'Properties§
public WindowProblemKind $kindMethods§
public function __construct(public WindowProblemKind $kind)Parameters
$kind | WindowProblemKind | The mistake |
public function message(): stringDescribes the problem as the server does.
Returns
stringTest cases 1
Test cases 4§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Relations§
Instantiated in 2
- new SqlSemantics\Platform\PostgreSql\Rules\Invocation\WindowChecks::specification() packages/sql-semantics-postgres/src/Rules/Invocation/WindowChecks.php:39
- new SqlSemantics\Platform\PostgreSql\Rules\Invocation\WindowChecks::specification() packages/sql-semantics-postgres/src/Rules/Invocation/WindowChecks.php:42