Commit 44db6ffc authored by Dmitry Shulga's avatar Dmitry Shulga Committed by Sergei Golubchik

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.
parent 3d752f0a
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment