Commit eb680470 authored by tim@threads.polyesthetic.msg's avatar tim@threads.polyesthetic.msg
Browse files

sql_parse.cc add send_ok() for BEGIN WORK

sql_yacc.yy	SQLCOM_COMMIT => SQLCOM_BEGIN for BEGIN_SYM
parent c5a1c3c7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
+1 −1
Original line number Diff line number Diff line
@@ -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 */ {}