mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
sql_parse.cc add send_ok() for BEGIN WORK
sql_yacc.yy SQLCOM_COMMIT => SQLCOM_BEGIN for BEGIN_SYM sql/sql_yacc.yy: SQLCOM_COMMIT => SQLCOM_BEGIN for BEGIN_SYM sql/sql_parse.cc: add send_ok() for BEGIN WORK
This commit is contained in:
parent
293d7c8313
commit
5d1d3b31a6
2 changed files with 2 additions and 1 deletions
|
@ -1697,6 +1697,7 @@ mysql_execute_command(void)
|
|||
case SQLCOM_BEGIN:
|
||||
thd->options|= OPTION_BEGIN;
|
||||
thd->server_status|= SERVER_STATUS_IN_TRANS;
|
||||
send_ok(&thd->net);
|
||||
break;
|
||||
case SQLCOM_COMMIT:
|
||||
thd->options&= ~OPTION_BEGIN;
|
||||
|
|
|
@ -2838,7 +2838,7 @@ grant_option:
|
|||
| WITH GRANT OPTION { Lex->grant |= GRANT_ACL;}
|
||||
|
||||
begin:
|
||||
BEGIN_SYM { Lex->sql_command = SQLCOM_COMMIT;} opt_work
|
||||
BEGIN_SYM { Lex->sql_command = SQLCOM_BEGIN;} opt_work
|
||||
|
||||
opt_work:
|
||||
/* empty */ {}
|
||||
|
|
Loading…
Reference in a new issue