Fixed 'process_rows_in_ASYNC_STMT_EXECUTE_STORE_RESULT_CONT' not properly updating 'length' from copied last row after data copy

pull/3335/head
Javier Jaramago Fernández 5 years ago
parent abca810fbe
commit d0a1866cf9

@ -1648,6 +1648,9 @@ void MySQL_Connection::process_rows_in_ASYNC_STMT_EXECUTE_STORE_RESULT_CONT(unsi
// update 'stmt->result.data' to the new allocated memory and copy the backed last row
query.stmt->result.data = current;
memcpy((char *)current->data, (char *)lcopy->data, lcopy->length);
// update the 'current->length' with the length of the copied row
current->length = lcopy->length;
// we free the copy
free(lcopy);
// change the rows count to 1

Loading…
Cancel
Save