mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-14216 "change query to work on Postgres." - some adjustments to make it work on mysql again too.
This commit is contained in:
parent
1e98b864e5
commit
daae98e118
1 changed files with 1 additions and 1 deletions
|
@ -601,7 +601,7 @@ class quiz_overview_report extends quiz_default_report {
|
|||
if ($attemptids){
|
||||
//make sure we fetch all attempts for users to calculate grade.
|
||||
//not just those that have changed.
|
||||
$sql = "SELECT qa2.* FROM {quiz_attempts} qa2 WHERE qa2.userid IN (SELECT DISTINCT userid FROM {quiz_attempts} qa WHERE $attemptsql)";
|
||||
$sql = "SELECT qa2.* FROM {quiz_attempts} qa2 WHERE qa2.userid IN (SELECT DISTINCT userid FROM {quiz_attempts} WHERE $attemptsql)";
|
||||
} else {
|
||||
$sql = "SELECT * FROM {quiz_attempts} WHERE $attemptsql";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue