classConstraintEnforcementRule
final class ConstraintEnforcementRule
implements RewriteRule
sql/sql_yacc.yy column_attribute_list allows enforcement only immediately after a CHECK attribute.
Methods§
public function rewrite(TerminalSequence $sequence): TerminalSequenceRemoves only misplaced column enforcement attributes, preserving table CHECK enforcement.
Parameters
$sequence | TerminalSequence |
Returns
Test cases 1
Calls 2
- method-call TerminalSequence::occurrences() line 23
- method-call TerminalSequence::range() line 24
Test cases 7§
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 6
GenerationContextTestcallsRewriteDefinitionsTestcallsMySqlProviderTestcallsPostgreSqlProviderTestcallsSqlGeneratorFactoryTestcallsSqliteProviderTestcalls