diff options
| author | Tatjana Azundris Nuernberg <tatjana.nuernberg@oracle.com> | 2011-10-19 03:21:31 +0100 |
|---|---|---|
| committer | Tatjana Azundris Nuernberg <tatjana.nuernberg@oracle.com> | 2011-10-19 03:21:31 +0100 |
| commit | 7d882c19ecad83af921dd7bd9d77f088da594ac0 (patch) | |
| tree | dad66f78fd97dc1c6ad37787e2824fbe831506bf /sql/sql_cache.cc | |
| parent | cf66b6511f8b9293152e60dcefaa0e67a34c242f (diff) | |
| download | mariadb-git-7d882c19ecad83af921dd7bd9d77f088da594ac0.tar.gz | |
Bug12589870 post-merge fixes for Sparc64 and friends
Diffstat (limited to 'sql/sql_cache.cc')
| -rw-r--r-- | sql/sql_cache.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/sql_cache.cc b/sql/sql_cache.cc index 4800fdedbe5..8a6d4bf9802 100644 --- a/sql/sql_cache.cc +++ b/sql/sql_cache.cc @@ -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, |
