Commit d23fcc42 authored by Alexey Botchkov's avatar Alexey Botchkov

MDEV-14593 human-readable XA RECOVER.

        sql_yacc_ora.yy fixed.
parent 5521994c
...@@ -1114,7 +1114,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b, size_t *yystacksize); ...@@ -1114,7 +1114,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b, size_t *yystacksize);
opt_default_time_precision opt_default_time_precision
case_stmt_body opt_bin_mod case_stmt_body opt_bin_mod
opt_if_exists_table_element opt_if_not_exists_table_element opt_if_exists_table_element opt_if_not_exists_table_element
opt_recursive opt_recursive opt_format_xid
%type <object_ddl_options> %type <object_ddl_options>
create_or_replace create_or_replace
...@@ -17083,12 +17083,29 @@ xa: ...@@ -17083,12 +17083,29 @@ xa:
{ {
Lex->sql_command = SQLCOM_XA_ROLLBACK; Lex->sql_command = SQLCOM_XA_ROLLBACK;
} }
| XA_SYM RECOVER_SYM | XA_SYM RECOVER_SYM opt_format_xid
{ {
Lex->sql_command = SQLCOM_XA_RECOVER; Lex->sql_command = SQLCOM_XA_RECOVER;
Lex->verbose= $3;
} }
; ;
opt_format_xid:
/* empty */ { $$= false; }
| FORMAT_SYM '=' ident_or_text
{
if (!my_strcasecmp(system_charset_info, $3.str, "SQL"))
$$= true;
else if (!my_strcasecmp(system_charset_info, $3.str, "RAW"))
$$= false;
else
{
my_yyabort_error((ER_UNKNOWN_EXPLAIN_FORMAT, MYF(0), "XA RECOVER", $3.str));
$$= false;
}
}
;
xid: xid:
text_string text_string
{ {
......
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