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

PIVOT is a new reserved word in MSSQL. It makes the glossary module unusable at all

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.7
    • Fix Version/s: 1.7
    • Component/s: Database SQL/XMLDB
    • Labels:
      None
    • Environment:
      MSSQL
    • Database:
      Microsoft SQL
    • Affected Branches:
      MOODLE_17_STABLE
    • Fixed Branches:
      MOODLE_17_STABLE

      Description

      PIVOT is reserved word for MSSQL 2005 (due to some functions using that name).

      The glossary module is full of: SELECT xxx AS pivot FROM.... and all those sentences are broken!

      Solution: Change all those AS PIVOT ocurrences to another thing (ideas are welcome) and change all the ocurrences of PIVOT inside the module too.

      Trick: To be able to do it easily, I propose to change all the "pivot" ocurrences to "glossarypivot" or something similar. Trying it tomorrow.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                7/Nov/06