diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 359ed495a83..a8f559790cb 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -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; diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy index 4b404081676..a1aadb82135 100644 --- a/sql/sql_yacc.yy +++ b/sql/sql_yacc.yy @@ -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 */ {}