the syntax is XA END xid [SUSPEND [FOR MIGRATE]]

parent fb19be7d
...@@ -8833,7 +8833,7 @@ xa: XA_SYM begin_or_start xid opt_join_or_resume ...@@ -8833,7 +8833,7 @@ xa: XA_SYM begin_or_start xid opt_join_or_resume
{ {
Lex->sql_command = SQLCOM_XA_START; Lex->sql_command = SQLCOM_XA_START;
} }
| XA_SYM END xid opt_suspend_or_migrate | XA_SYM END xid opt_suspend
{ {
Lex->sql_command = SQLCOM_XA_END; Lex->sql_command = SQLCOM_XA_END;
} }
...@@ -8893,9 +8893,14 @@ opt_one_phase: ...@@ -8893,9 +8893,14 @@ opt_one_phase:
| ONE_SYM PHASE_SYM { Lex->xa_opt=XA_ONE_PHASE; } | ONE_SYM PHASE_SYM { Lex->xa_opt=XA_ONE_PHASE; }
; ;
opt_suspend_or_migrate: opt_suspend:
/* nothing */ { Lex->xa_opt=XA_NONE; } /* nothing */ { Lex->xa_opt=XA_NONE; }
| SUSPEND_SYM { Lex->xa_opt=XA_SUSPEND; } | SUSPEND_SYM { Lex->xa_opt=XA_SUSPEND; }
opt_migrate
;
opt_migrate:
/* nothing */ { }
| FOR_SYM MIGRATE_SYM { Lex->xa_opt=XA_FOR_MIGRATE; } | FOR_SYM MIGRATE_SYM { Lex->xa_opt=XA_FOR_MIGRATE; }
; ;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment