diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2020-06-22 18:21:21 +0200 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2020-10-12 17:07:33 +0200 |
commit | 1df5a92df899d033841d77c34e1512e2b118b2ec (patch) | |
tree | ff7879dbeb9f0afd8ef95cfa4aad0b5ba741ea20 /sql/sql_parse.cc | |
parent | 861cd4ce286e7b41cc38facfc86c358e15161a74 (diff) | |
download | mariadb-git-bb-10.5-MDEV-21916.tar.gz |
MDEV-21916: COM_STMT_BULK_EXECUTE with RETURNING insert wrong valuesbb-10.5-MDEV-21916
To allocate new net buffer to avoid changing bufer we are reading.
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r-- | sql/sql_parse.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 4ef2a4c5d46..1d6e0497b63 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -2331,7 +2331,7 @@ bool dispatch_command(enum enum_server_command command, THD *thd, size_t next_length_length= packet_start - packet; unsigned char *readbuff= net->buff; - if (net_allocate_new_packet(net, thd, MYF(0))) + if (net_allocate_new_packet(net, thd, MYF(MY_THREAD_SPECIFIC))) break; PSI_statement_locker *save_locker= thd->m_statement_psi; |