SUM of integer field becomes FLOAT bug?
Posted: Wed 07 Dec 2011 13:32
Dear sirs,
When I run query from MySQL Query Browser:
I get three results of integer and one (last) float. It is easy to notice when decimal separator and zero is after integer part.
When I put this query to TMyQuery and in Fields Editor select Add all fields, last two are floating point.
The same problem I have when I have such query:
WHERE L1 is of type INT(10) UNSIGNED. The result is float.
Is it possible to have SUM function of integer field to be integer?
When I run query from MySQL Query Browser:
Code: Select all
SELECT 1, 1+1, SUM(1), SUM(1)*1.0When I put this query to TMyQuery and in Fields Editor select Add all fields, last two are floating point.
The same problem I have when I have such query:
Code: Select all
SELECT SUM(L1) FROM Table1;Is it possible to have SUM function of integer field to be integer?