1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Bug12589870 post-merge fixes for Sparc64 and friends

This commit is contained in:
Tatjana Azundris Nuernberg
2011-10-19 03:21:31 +01:00
parent cf66b6511f
commit 7d882c19ec
3 changed files with 8 additions and 5 deletions

View File

@ -1471,8 +1471,9 @@ Query_cache::send_result_to_client(THD *thd, char *sql, uint query_length)
sure the new current database has a name with the same length
as the previous one.
*/
size_t *db_len= (size_t *) (sql + query_length + 1);
if (thd->db_length != *db_len)
size_t db_len;
memcpy((char *) &db_len, (sql + query_length + 1), sizeof(size_t));
if (thd->db_length != db_len)
{
/*
We should probably reallocate the buffer in this case,