mirror of
https://github.com/MariaDB/server.git
synced 2026-04-26 10:15:29 +02:00
Bug12589870 post-merge fixes for Sparc64 and friends
sql/sp_head.cc: alignment-safe copy sql/sql_cache.cc: alignment-safe copy sql/sql_parse.cc: alignment-safe copy
This commit is contained in:
parent
5dc553cd28
commit
8444b6a114
3 changed files with 8 additions and 5 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue