classProceduralModes
final class ProceduralModes
The productions the grammar keeps for PL/pgSQL and for parsing a lone type name.
Rule: PG-STATEMENT-002. Scope: the alternatives of parse_toplevel that start with a mode token, PLpgSQL_Expr, PLAssignStmt, plassign_target and plassign_equals. The server enters them by pushing a mode token in front of the text when PL/pgSQL compiles an expression or assignment, or when a type name is parsed on its own; the scanner never produces a mode token from SQL text, so no SQL statement reaches these productions. A tree that contains one was not parsed from SQL text and is rejected as outside the grammar of SQL statements. Source: https://www.postgresql.org/docs/17/plpgsql-implementation.html. Status: Implemented.
Constants§
public const SIGNATURES = ['parse_toplevel: MODE_TYPE_NAME Typename', 'parse_toplevel: MODE_PLPGSQL_EXPR …The productions no SQL text reaches.
Methods§
public function reject(Form $form): neverRejects a tree rooted at a production of a parser mode.
Parameters
$form | Form |
Returns
neverThrows
AnalysisException When the production belongs to a parser modeImplementationGap When the production is not one of the listed onesTest cases 2
Called from 1
Calls 4
- function-call
in_arrayline 53 - class-const ProceduralModes::SIGNATURES() line 53
- new AnalysisException line 54
- static-call ImplementationGap::production() line 56
Test cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.