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

Incorrect usage of SELECT DISTINCT from TEXT fields

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.0.1
    • 2.0
    • Enrolments
    • None
    • Microsoft SQL, Oracle
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE

      Hi Petr, yet another issue with SELECT DISTINCT combined with TEXT fields under Oracle/MSSQL was reported by fweiss in MDL-22910

      I have tracked it down to the code in enrol/meta/locallib.php in user_unenrolled() function:

              $sql = "SELECT DISTINCT e.*
                        FROM {enrol} e

      The table

      {enrol}

      contains customtext1 and customtext2 TEXT fields that can not be used in this query.

            skodak Petr Skoda
            mudrd8mz David Mudrák (@mudrd8mz)
            Nobody Nobody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.