Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-18253

Continuing problems with upgrades and installs because of fractional version numbers

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.9.4
    • Fix Version/s: 1.9.5
    • Component/s: Database SQL/XMLDB
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                skodak Petr Skoda
                Reporter:
                timhunt Tim Hunt
                Tester:
                Andrew Davis
                Participants:
                Component watchers:
                Jake Dallimore, Jun Pataleta
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  13/May/09