final class XaRule
Restricted visibility: declared "@visibility SqlSemantics\Platform\MySql\Lowering\Server". Code outside that scope must not name this declaration.

Lowers the XA transaction statements.

Rule: MYSQL-XA-001. Scope: xa, xid, begin_or_start, opt_join_or_resume, opt_one_phase, opt_suspend, opt_migrate (5.6), opt_convert_xid (5.7 and later). BEGIN and START are synonyms in XA START (ServerNoise). A global transaction identifier or branch qualifier longer than 64 bytes, and a format identifier above 2^63-1, are syntax errors the server raises in the xid action (MYSQL_YYABORT_UNLESS) and are rejected as such. Constructs: XaStart, XaEnd, XaPrepare, XaCommit, XaRollback, XaRecover, Xid. Terminates: every child is a strict subtree. Source: https://dev.mysql.com/doc/refman/8.4/en/xa-statements.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe lowering this rule belongs to
public function statement(Form $form): Statement

Lowers an XA statement: a node of xa.

Parameters

$formForm

Returns

Throws

ImplementationGap When a production has no rule
AnalysisException When an identifier part exceeds its limit
Called from 1
Calls 11
public function start(Form $form): XaStart

Lowers XA START or XA BEGIN.

Parameters

$formForm

Returns

Throws

ImplementationGap When a production has no rule
AnalysisException When an identifier part exceeds its limit
Called from 1
Calls 5
public function endOption(Node $option): ?XaEndOption
public function limits(Text $transaction, ?Text $branch, ?Numeral $format): void

Rejects identifier parts the server rejects while it parses.

Parameters

$transactionText
$branch?Text
$format?Numeral

Throws

AnalysisException When a part exceeds its limit
Called from 1
Calls 4

Private surface 3§

Implementation details, listed for orientation only.

private const OPTIONS = ['opt_join_or_resume:' => null, 'opt_join_or_resume: JOIN_SYM' => \SqlSemantics…
private const FLAGS = ['opt_one_phase:' => false, 'opt_one_phase: ONE_SYM PHASE_SYM' => true, 'opt_co…
private Lowering $lowering

Test cases 1§

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

Dedicated tests 1

Relations§

Instantiated in 1
Method calls 1