classConcatenationRule
final class ConcatenationRule
implements RewriteRule
Default SQL mode scans || as OR2_SYM; the OR_OR_SYM production constructs Item_func_concat. Preserve its operands and precedence by expressing that production as a native function call.
Methods§
public function rewrite(TerminalSequence $sequence): TerminalSequenceRewrites innermost concatenations first, retaining the identities of both operand subtrees.
Parameters
$sequence | TerminalSequence |
Returns
Test cases 2
Calls 4
- method-call TerminalSequence::occurrences() line 25
- method-call TerminalSequence::range() line 26
- function-call
countline 32 - function-call
array_sliceline 39
Test cases 6§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
Other tests reaching this symbol 4
GenerationContextTestcallsRewriteDefinitionsTestcallsSqlGeneratorFactoryTestcallsMySqlProviderTestcalls