Commit 0918a3a2 authored by Davi Arnaut's avatar Davi Arnaut

Bug#58765: Warning in item.h on Windows

Truncate the maximum result length (64-bit wide type) to fit into
the item maximum length (32-bit wide type). This is possible as
this specific branch is only used if the maximum result length
is less than 0x1000000 (MAX_BLOB_WIDTH), which fits comfortably
in a 32-bit wide type.
parent ff3f14db
......@@ -1231,7 +1231,7 @@ class Item {
maybe_null= 1;
}
else
max_length= max_result_length;
max_length= (uint32) max_result_length;
}
void fix_length_and_charset_datetime(uint32 max_char_length_arg)
{
......
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