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

support null fields in backup/restore

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8
    • Fix Version/s: 1.9
    • Component/s: Backup
    • Labels:
      None
    • Database:
      Any
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      We can now have NULL fields in database, however currently we have no way of representing them in the xml for backups. If we have <data></data> it gets read as an empty string by restore. We plan to use a special string NULL to indicate a value of NULL in the xml, and restore that value during restore using insert_record().

      -Add special NULL string to "full_tag()"
      -Recover special NULL string from "backup_todb()"

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Mar/08