You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting a few unit test errors in Postgres 16 on MOODLE_402_STABLE because of this - it probably affects other branches as well.
local_assessfreq\frequency_test::test_get_events_due_by_month
dml_read_exception: Error reading from database (ERROR: trailing junk after parameter at or near "$5G"
LINE 5: AND s.endyear = $5GROUP BY s.endm...
^
SELECT s.endmonth, COUNT(s.id) as count
FROM phpu_local_assessfreq_site s
LEFT JOIN phpu_course c ON s.courseid = c.id
WHERE s.module IN ($1,$2,$3,$4)
AND s.endyear = $5GROUP BY s.endmonth
ORDER BY s.endmonth ASC
[array (
0 => 'quiz',
1 => 'assign',
2 => 'scorm',
3 => 'choice',
4 => 2020,
)])
/var/www/moodle-44/lib/dml/moodle_database.php:494
/var/www/moodle-44/lib/dml/moodle_read_slave_trait.php:293
/var/www/moodle-44/lib/dml/pgsql_native_moodle_database.php:358
/var/www/moodle-44/lib/dml/pgsql_native_moodle_database.php:1044
/var/www/moodle-44/local/assessfreq/classes/frequency.php:956
/var/www/moodle-44/local/assessfreq/tests/frequency_test.php:693
/var/www/moodle-44/lib/phpunit/classes/advanced_testcase.php:72
local_assessfreq\frequency_test::test_get_events_due_by_activity
dml_read_exception: Error reading from database (ERROR: trailing junk after parameter at or near "$1G"
LINE 4: WHERE s.endyear = $1GROUP BY s.module
^
SELECT s.module, COUNT(s.id) as count
FROM phpu_local_assessfreq_site s
LEFT JOIN phpu_course c ON s.courseid = c.id
WHERE s.endyear = $1GROUP BY s.module
ORDER BY s.module ASC
[array (
0 => 2020,
)])
/var/www/moodle-44/lib/dml/moodle_database.php:494
/var/www/moodle-44/lib/dml/moodle_read_slave_trait.php:293
/var/www/moodle-44/lib/dml/pgsql_native_moodle_database.php:358
/var/www/moodle-44/lib/dml/pgsql_native_moodle_database.php:1044
/var/www/moodle-44/local/assessfreq/classes/frequency.php:1058
/var/www/moodle-44/local/assessfreq/tests/frequency_test.php:909
/var/www/moodle-44/lib/phpunit/classes/advanced_testcase.php:72
local_assessfreq\frequency_test::test_get_events_due_monthly_by_user
dml_read_exception: Error reading from database (ERROR: trailing junk after parameter at or near "$5G"
LINE 6: AND s.endyear = $5GROUP BY s.endm...
^
SELECT s.endmonth, COUNT(u.id) as count
FROM phpu_local_assessfreq_site s
INNER JOIN phpu_local_assessfreq_user u ON s.id = u.eventid
INNER JOIN phpu_course c ON s.courseid = c.id
WHERE s.module IN ($1,$2,$3,$4)
AND s.endyear = $5GROUP BY s.endmonth
ORDER BY s.endmonth ASC
[array (
0 => 'quiz',
1 => 'assign',
2 => 'scorm',
3 => 'choice',
4 => 2020,
)])
/var/www/moodle-44/lib/dml/moodle_database.php:494
/var/www/moodle-44/lib/dml/moodle_read_slave_trait.php:293
/var/www/moodle-44/lib/dml/pgsql_native_moodle_database.php:358
/var/www/moodle-44/lib/dml/pgsql_native_mood/var/www/mwp-44/lib/dml/moodle_database.php:494le_database.php:1044
/var/www/moodle-44/local/assessfreq/classes/frequency.php:1009
/var/www/moodle-44/local/assessfreq/tests/frequency_test.php:973
/var/www/moodle-44/lib/phpunit/classes/advanced_testcase.php:72
The text was updated successfully, but these errors were encountered:
Getting a few unit test errors in Postgres 16 on MOODLE_402_STABLE because of this - it probably affects other branches as well.
The text was updated successfully, but these errors were encountered: