File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -1617,16 +1617,14 @@ bool Protocol_binary::send_out_parameters(List<Item_param> *sp_params)
1617
1617
if (write ())
1618
1618
return TRUE ;
1619
1619
1620
- /* Restore THD::server_status. */
1621
- thd->server_status &= ~SERVER_PS_OUT_PARAMS;
1622
-
1623
1620
ret= net_send_eof (thd, thd->server_status , 0 );
1624
1621
1625
1622
/*
1626
- Reset SERVER_MORE_RESULTS_EXISTS bit, because this is the last packet
1627
- for sure.
1623
+ Reset server_status:
1624
+ - SERVER_MORE_RESULTS_EXISTS bit, because this is the last packet for sure.
1625
+ - Restore SERVER_PS_OUT_PARAMS status.
1628
1626
*/
1629
- thd->server_status &= ~SERVER_MORE_RESULTS_EXISTS;
1627
+ thd->server_status &= ~(SERVER_PS_OUT_PARAMS | SERVER_MORE_RESULTS_EXISTS) ;
1630
1628
1631
1629
return ret ? FALSE : TRUE ;
1632
1630
}
You can’t perform that action at this time.
0 commit comments