enumDefaultSpelling
enum DefaultSpelling: string
Public API: explicitly declared with
@visibility public.How the default value of a routine parameter is introduced: DEFAULT or =.
Both request the same default; the spelling is kept so that the statement is written back with the same tokens. Source: https://www.postgresql.org/docs/17/sql-createfunction.html.
\SqlSemantics\Platform\PostgreSql\Statement\Routine\DefaultSpelling::EqualsSign->value // => '='Cases§
case Keyword = 'DEFAULT'case EqualsSign = '='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
FunctionRuleTest::testParameterLowersBothDefaultSpellingscallsFunctionParameterTest::testDeriveClauseDerivesTheDefaultValuecallsFunctionParameterTest::testRejectsASpellingWithoutADefaultcallsFunctionParameterTest::testRenderWritesTheNameBeforeTheModeWhenWrittenSocallsRoutineSignatureTest::testRejectsADefaultValuecalls
Relations§
Constant reads 4
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Routine\FunctionRule::parameter() packages/sql-semantics-postgres/src/Lowering/Routine/FunctionRule.php:103
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Routine\FunctionRule::parameter() packages/sql-semantics-postgres/src/Lowering/Routine/FunctionRule.php:104
- class-const SqlSemantics\Platform\PostgreSql\Statement\Routine\FunctionParameter::render() packages/sql-semantics-postgres/src/Statement/Routine/FunctionParameter.php:101
- class-const SqlSemantics\Platform\PostgreSql\Statement\Routine\FunctionParameter::render() packages/sql-semantics-postgres/src/Statement/Routine/FunctionParameter.php:102