
| Key: |
MDL-18253
|
| Type: |
Bug
|
| Status: |
Resolved
|
| Resolution: |
Fixed
|
| Priority: |
Critical
|
| Assignee: |
Petr Skoda
|
| Reporter: |
Tim Hunt
|
| Votes: |
0
|
| Watchers: |
0
|
|
|
|
Issue Links:
|
Cloners
|
|
|
|
This issue has a clone:
|
|
MDL-17868
Upgrade fails on some platforms becuase of fractional version numbers
|
|
|
|
|
|
|
| Participants: |
Petr Skoda and Tim Hunt
|
| Security Level: |
None
|
| Resolved date: |
16/Feb/09
|
| Affected Branches: |
MOODLE_19_STABLE
|
| Fixed Branches: |
MOODLE_19_STABLE
|
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.
|
|
Description
|
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. |
Show » |
made changes - 15/Feb/09 03:15 PM
| Field |
Original Value |
New Value |
|
Link
|
|
This issue has a clone MDL-17868
[ MDL-17868
]
|
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
]
|
|
made changes - 16/Feb/09 04:04 AM
|
Status
|
Open
[ 1
]
|
Resolved
[ 5
]
|
|
Resolution
|
|
Fixed
[ 1
]
|
|