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

Fix invalid SQL on course log graph reports - Oracle

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.3, 1.9, 2.0
    • Fix Version/s: 1.8.4, 1.9, 2.0
    • Component/s: Course
    • Labels:
      None
    • Database:
      Oracle
    • Affected Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_20_STABLE

      Description

      Oracle does not accept column labels in the GROUP BY section - get_logs_usercourse() and get_logs_userday() were computing the day/hours column and using it in the GROUP BY.

      Credit for the fix goes to Dennis Rochford <Dennis.Rochford@usq.edu.au>.

        Attachments

          Activity

            People

            Assignee:
            martinlanghoff Martín Langhoff
            Reporter:
            martinlanghoff Martín Langhoff
            Tester:
            Nobody
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              11/Jan/08