mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
MDEV-19838: followup, fix for PS & embedded
Use 9 byte (min length packet)
This commit is contained in:
parent
2e5450af05
commit
f9b0ee07ef
1 changed files with 2 additions and 1 deletions
|
@ -330,7 +330,7 @@ static my_bool emb_read_query_result(MYSQL *mysql)
|
|||
static int emb_stmt_execute(MYSQL_STMT *stmt)
|
||||
{
|
||||
DBUG_ENTER("emb_stmt_execute");
|
||||
uchar header[5];
|
||||
uchar header[9];
|
||||
THD *thd;
|
||||
my_bool res;
|
||||
|
||||
|
@ -342,6 +342,7 @@ static int emb_stmt_execute(MYSQL_STMT *stmt)
|
|||
|
||||
int4store(header, stmt->stmt_id);
|
||||
header[4]= (uchar) stmt->flags;
|
||||
header[5]= header[6]= header[7]= header[8]= 0; // safety
|
||||
thd= (THD*)stmt->mysql->thd;
|
||||
thd->client_param_count= stmt->param_count;
|
||||
thd->client_params= stmt->params;
|
||||
|
|
Loading…
Reference in a new issue