mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
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:
parent
3d752f0a3a
commit
44db6ffc19
1 changed files with 6 additions and 0 deletions
|
@ -4936,6 +4936,12 @@ int STDCALL mysql_stmt_next_result(MYSQL_STMT *stmt)
|
||||||
alloc_stmt_fields(stmt);
|
alloc_stmt_fields(stmt);
|
||||||
prepare_to_fetch_result(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);
|
DBUG_RETURN(0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue