mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Bug12589870 post merge fixes - manual merge
This commit is contained in:
@ -1515,8 +1515,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,
|
||||
|
Reference in New Issue
Block a user