Commit 9f5f5953 authored by konstantin@mysql.com's avatar konstantin@mysql.com

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.
parent 66f0ff16
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment