mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03: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.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user