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

Call to undefined method mysqli_native_moodle_database::inert_record()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Labels:
      None
    • Database:
      MySQL
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      Using 2.0 Preview 3 (Build: 20100625), get the following error when attempting upgrade from current 1.9.9 to 2.0:

      Fatal error: Call to undefined method mysqli_native_moodle_database::inert_record() in /var/www/moodle2.test/lib/db/upgrade.php on line 4417

      Current build, line 4417 reads:

      $DB->inert_record('enrol', $enrol);

      Should this be:

      $DB->insert_record('enrol', $enrol);

        Attachments

          Activity

            People

            Assignee:
            danmarsden Dan Marsden
            Reporter:
            mcampbell Matt Campbell
            Tester:
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Participants:
            Component watchers:
            Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              24/Nov/10