final class SetNamesRule
    implements RewriteRule

sql/sql_yacc.yy option_value_no_option_type declares NAMES equal expr solely to reject it.

Methods§

public function __construct(private string $defaultTerminal = 'DEFAULT_SYM')
public function rewrite(TerminalSequence $sequence): TerminalSequence

Replaces that diagnostic alternative with its valid NAMES DEFAULT sibling, including arbitrary expressions.

Parameters

Test cases 3
Calls 4

Private surface 1§

Implementation details, listed for orientation only.

private string $defaultTerminal = 'DEFAULT_SYM'

Test cases 9§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 3
Other tests reaching this symbol 6

Relations§

Instantiated in 1