lava-oushudb-dt-sql-parser/test/parser/mysql/syntax/fixtures/xaTransactions.sql
琉易 428d851913
feat: #190 improve mysql grammer (#196)
* refactor: generic rename to mysql

* refactor: g4 with mysql syntax

* test: mysql syntax

* refactor: remove useless keywords

* refactor: remove nonReserved keywords

* refactor: lint specificFunction

---------

Co-authored-by: liuyi <liuyi@dtstack.com>
2023-11-27 15:25:40 +08:00

36 lines
696 B
SQL

-- https://dev.mysql.com/doc/refman/8.0/en/xa-statements.html
/* XA {START|BEGIN} xid [JOIN|RESUME]
XA END xid [SUSPEND [FOR MIGRATE]]
XA PREPARE xid
XA COMMIT xid [ONE PHASE]
XA ROLLBACK xid
XA RECOVER [CONVERT xid] */
XA START 'transaction_id' JOIN;
XA START 'transaction_id' RESUME;
XA START 'transaction_id';
XA BEGIN 'transaction_id' RESUME;
XA BEGIN 'transaction_id' JOIN;
XA BEGIN 'transaction_id';
XA END 'transaction_id' SUSPEND FOR MIGRATE;
XA END 'transaction_id' SUSPEND;
XA END 'transaction_id';
XA PREPARE 'transaction_id';
XA COMMIT 'transaction_id' ONE PHASE;
XA COMMIT 'transaction_id';
XA ROLLBACK 'transaction_id';
XA RECOVER CONVERT 'transaction_id';
XA RECOVER;