classCursorFacts
final class CursorFacts
Restricted visibility: declared "@visibility SqlSemantics\Platform\PostgreSql". Code outside that scope must not name this declaration.
Derives the facts of DECLARE.
Rule: PG-CURSOR-001. The query is derived as a nested query in the empty environment; declaring the cursor returns no rows (FETCH reads them). SCROLL with NO SCROLL, and ASENSITIVE with INSENSITIVE, are reported. A data-modifying statement in the WITH clause of the query is reported; one in a nested WITH clause follows PG-MODIFYING-CTE-001. A selection with INTO is reported (PG-PLACEMENT-001). Source: https://www.postgresql.org/docs/17/sql-declare.html. Status: Implemented.
Methods§
public function declare(DeclareCursor $declare, Derivation $derivation): voidDerives a cursor declaration.
Parameters
$declare | DeclareCursor | |
$derivation | Derivation |
Called from 1
Calls 16
- method-call Derivation::query() line 34
- method-call Derivation::environment() line 34
- function-call
in_arrayline 36 - class-const CursorOption::Scroll() line 36
- class-const CursorOption::NoScroll() line 36
- method-call Derivation::report() line 37
- new ManipulationMisuse line 37
- class-const ManipulationMisuseRule::CursorScrollConflict() line 37
- class-const CursorOption::Asensitive() line 39
- class-const CursorOption::Insensitive() line 39
- class-const ManipulationMisuseRule::CursorSensitivityConflict() line 40
- new Placement line 42
- method-call Placement::modifying() line 43
- class-const ManipulationMisuseRule::CursorModifyingWith() line 45
- method-call Placement::values() line 49
- method-call Placement::into() line 50
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
CursorFactsTestcalls