MDEV-16708: fixed failure of the test sys_vars.sql_select_limit_func

This test failed in case it was run in PS mode and for embedded server

The reason of test failure was that the following fields
  affected_row, server_status, insert_id
of the structure MYSQL_STMT weren't update on calling
mysql_stmt_next_result() in case combination of binary protocol
and embedded server used.
This commit is contained in:
Dmitry Shulga 2021-06-17 14:53:22 +07:00 committed by Sergei Golubchik
parent 3d752f0a3a
commit 44db6ffc19

View file

@ -4936,6 +4936,12 @@ int STDCALL mysql_stmt_next_result(MYSQL_STMT *stmt)
alloc_stmt_fields(stmt);
prepare_to_fetch_result(stmt);
}
else
{
stmt->affected_rows= stmt->mysql->affected_rows;
stmt->server_status= stmt->mysql->server_status;
stmt->insert_id= stmt->mysql->insert_id;
}
DBUG_RETURN(0);
}