mirror of
https://github.com/MariaDB/server.git
synced 2026-05-06 15:15:34 +02:00
Fix assertion failure in client_test when linked with the embedded
library: stmt_update_metadata (used when we update max_length in mysql_stmt_store_result) needs valid row->length. libmysqld/lib_sql.cc: row->length is asserted to be valid in stmt_update_metadata
This commit is contained in:
parent
b824756c00
commit
6cbcd3423a
1 changed files with 1 additions and 0 deletions
|
|
@ -710,6 +710,7 @@ bool Protocol_prep::write()
|
|||
}
|
||||
cur->data= (MYSQL_ROW)(((char *)cur) + sizeof(MYSQL_ROWS));
|
||||
memcpy(cur->data, packet->ptr()+1, packet->length()-1);
|
||||
cur->length= packet->length(); /* To allow us to do sanity checks */
|
||||
|
||||
*data->prev_ptr= cur;
|
||||
data->prev_ptr= &cur->next;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue