Bug #58765 Warning in item.h on Windows
Submitted: 6 Dec 2010 21:22 Modified: 10 Jan 2011 15:37
Reporter: Calvin Sun Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.5+ OS:Windows
Assigned to: Davi Arnaut CPU Architecture:Any

[6 Dec 2010 21:22] Calvin Sun
Description:
In 5.5+, there are many compiler warnings on Windows because of the following:

d:\work\mysql-5.5-innodb\sql\item.h(1234) : warning C4244: '=' : conversion from 'ulonglong' to 'uint32', possible loss of data

The above is from 32-bit Windows, using MSVC 2008.

How to repeat:
Compile the server on Windows.
[17 Dec 2010 20:13] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/127226

3212 Davi Arnaut	2010-12-17
      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.
[7 Jan 2011 21:14] Bugs System
Pushed into mysql-trunk 5.6.2 (revid:davi.arnaut@oracle.com-20110107195411-btoz25nczquv47wj) (version source revid:davi.arnaut@oracle.com-20110107195411-btoz25nczquv47wj) (merge vers: 5.6.2) (pib:24)
[7 Jan 2011 21:14] Bugs System
Pushed into mysql-5.5 5.5.9 (revid:davi.arnaut@oracle.com-20110107193241-hg6qmwb5emsn4l8v) (version source revid:davi.arnaut@oracle.com-20110107193241-hg6qmwb5emsn4l8v) (merge vers: 5.5.9) (pib:24)
[10 Jan 2011 15:37] Paul DuBois
No/minimal user impact. No changelog entry needed.