Commit 74f16bc2 authored by Marc Alff's avatar Marc Alff

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
parent 21eb9fd0
...@@ -447,7 +447,8 @@ int emb_load_querycache_result(THD *thd, Querycache_stream *src) ...@@ -447,7 +447,8 @@ int emb_load_querycache_result(THD *thd, Querycache_stream *src)
if (thd->protocol == &thd->protocol_binary) if (thd->protocol == &thd->protocol_binary)
{ {
uint length; 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; end_row= row + rows;
data->data= row; data->data= row;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment