Commit 32a48f06 authored by Georgi Kodinov's avatar Georgi Kodinov

merged 5.0-bugteam -> 5.1-bugteam.

Fixed a warning in 5.1 caused by missing type cast.
parents d3380a92 494a7641
...@@ -598,7 +598,8 @@ bool Protocol::send_fields(List<Item> *list, uint flags) ...@@ -598,7 +598,8 @@ bool Protocol::send_fields(List<Item> *list, uint flags)
field.length / item->collation.collation->mbminlen : field.length / item->collation.collation->mbminlen :
field.length / item->collation.collation->mbmaxlen; field.length / item->collation.collation->mbmaxlen;
max_length*= thd_charset->mbmaxlen; max_length*= thd_charset->mbmaxlen;
field_length= (max_length > UINT_MAX32) ? UINT_MAX32 : max_length; field_length= (max_length > UINT_MAX32) ?
UINT_MAX32 : (uint32) max_length;
int4store(pos + 2, field_length); int4store(pos + 2, field_length);
} }
pos[6]= field.type; pos[6]= field.type;
......
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