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

Privacy add_to_sql() fails with DISTINCT query with brackets

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.5.3, 3.6.1
    • Fix Version/s: None
    • Component/s: Privacy
    • Labels:
      None
    • Affected Branches:
      MOODLE_35_STABLE, MOODLE_36_STABLE

      Description

      If a plugin uses the (slightly dodgy) "SELECT DISTINCT(contextid)" construct in its privacy provider's add_to_sql() calls, the id field is guessed as "DISTINCT" and the query fails.

      I would expect this to be either "not guessed" or contextid.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              maherne Michael Aherne
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: