Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incomplete join on query using course_modules #8

Open
wants to merge 1 commit into
base: MOODLE_31_STABLE
Choose a base branch
from

Conversation

terrycampbell
Copy link

The course_modules join is incomplete. It would work only if idnumber were a unique index, but the index requires course,idnumber to be unique. In an application where module idnumbers are repeated (for example when courses are being cloned) this results in incorrect joins, large result size and possible connection aborts. The fix is to require a match on both idnumber and course.

…t size and errors. Code appeared to assume idnumber was unique.
@terrycampbell terrycampbell changed the title Incomplete join on query using copurse_modules caused excessive resul… Incomplete join on query using course_modules Dec 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant