stable

Clone or download

Read-only

request #9683: FLOAT(10,4) is not precise enough for big floats

If you enter 14906.09 in a float field, it is saved as 14906.0898 which is wrong. This is due to the type of the column: FLOAT(10,4) As said in the mysql documentation[1]: > For maximum portability, code requiring storage of approximate numeric > data values should use FLOAT or DOUBLE PRECISION with no specification > of precision or number of digits. Please note that we cannot change existing data, this applies only for next changes in artifacts. [1] http://dev.mysql.com/doc/refman/5.5/en/floating-point-types.html Change-Id: Iacf49e7e2f3caa44565cd0f49769c7dd422c3fa2

Modified Files

Name
M plugins/tracker/db/install.sql +5 −5 Go to diff View file
A plugins/tracker/db/mysql/updates/2016/201611291315_switch_float_to_double.php +55 −0 Go to diff View file