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

TEXT comparison in restore breaks correct detection of scales

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.3
    • Fix Version/s: 1.9.4
    • Component/s: Backup
    • Labels:
      None
    • Environment:
      MSSQL + Oracle
    • Database:
      Microsoft SQL, Oracle
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      When restoring a course, pre-existing scales are searched in target site to be reused. That consists in a CLOB comparison in SQL.

      But that fails under MSSQL and Oracle that need a special syntax to compare clobs.

      Change SQL to use the helper sql_compare_text() function.

        Attachments

          Activity

            People

            • Assignee:
              stronk7 Eloy Lafuente (stronk7)
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Tester:
              Tim Hunt
              Participants:
              Component watchers:
              Adrian Greeve, Mihail Geshoski, Peter Dias
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                28/Jan/09