Issue Details (XML | Word | Printable)

Key: MDL-18253
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Petr Skoda
Reporter: Tim Hunt
Votes: 0
Watchers: 0
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Continuing problems with upgrades and installs because of fractional version numbers

Created: 15/Feb/09 03:15 PM   Updated: 16/Feb/09 11:18 AM
Return to search
Component/s: Database SQL/XMLDB
Affects Version/s: 1.9.4
Fix Version/s: 1.9.5

Issue Links:
Cloners
 

Participants: Petr Skoda and Tim Hunt
Security Level: None
Resolved date: 16/Feb/09
Affected Branches: MOODLE_19_STABLE
Fixed Branches: MOODLE_19_STABLE


 Description  « Hide
See http://moodle.org/mod/forum/discuss.php?d=113752

The issue seems to be

(mysql): UPDATE mdl_config SET value = '2.0071E+9' WHERE name = 'version'

Note that the version number has been rounded (value = '2.0071E+9') so the upgrade continues from the wrong place.

http://www.php.net/manual/en/language.types.float.php seems to say that PHP floats always use 15 decimal digits of precision internally, so my diagnosis is that the error occurs when the float is converted to a string somewhere in set_config before it is stored in the DB.

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Tim Hunt made changes - 15/Feb/09 03:15 PM
Field Original Value New Value
Link This issue has a clone MDL-17868 [ MDL-17868 ]
Tim Hunt made changes - 15/Feb/09 03:18 PM
Affects Version/s 1.9.4 [ 10300 ]
Affects Version/s 1.9.3 [ 10290 ]
Fix Version/s 1.9.5 [ 10320 ]
Fix Version/s 1.9.4 [ 10300 ]
Petr Skoda made changes - 16/Feb/09 04:04 AM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]