mirror of
https://github.com/MariaDB/server.git
synced 2026-04-24 09:15:30 +02:00
Fixed build warning on Windows (emb_qcache.cc)
libmysqld/emb_qcache.cc: Fixed build warning on Windows: ported the fix from 6.0 in 5.1
This commit is contained in:
parent
7c5d30473b
commit
678f1a86de
1 changed files with 2 additions and 1 deletions
|
|
@ -447,7 +447,8 @@ int emb_load_querycache_result(THD *thd, Querycache_stream *src)
|
|||
if (thd->protocol == &thd->protocol_binary)
|
||||
{
|
||||
uint length;
|
||||
row= (MYSQL_ROWS *)alloc_root(&data->alloc, rows * sizeof(MYSQL_ROWS));
|
||||
row= (MYSQL_ROWS *)alloc_root(&data->alloc,
|
||||
(size_t) (rows * sizeof(MYSQL_ROWS)));
|
||||
end_row= row + rows;
|
||||
data->data= row;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue