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

CHAR_LENGTH SQL query fails in MSSQL

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.4
    • Fix Version/s: 1.9.5
    • Component/s: Database SQL/XMLDB
    • Labels:
      None
    • Environment:
      RedHat Linux, Apache 2.2.3, PHP 5.2.8, SQL Server
    • Database:
      Microsoft SQL
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      In mod/resource/filter.php, the resource_filter() function uses the CHAR_LENGTH function in a SQL query. In MSSQL, the CHAR_LENGTH function is called LEN, so errors are thrown whenever the function is called.

        Attachments

          Activity

            People

            Assignee:
            stronk7 Eloy Lafuente (stronk7)
            Reporter:
            luciandipeso Lucian DiPeso
            Participants:
            Component watchers:
            Jake Dallimore, Jun Pataleta
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

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