par George Mitrevski.
Can anyone please figure out what is causing this error reading from the database? I get this error when I try to access Assignments that are uploaded to Moodle. I'm using Moodle 2.0.
Debug info: BIGINT UNSIGNED value is out of range in '(`pelister_mdl1`.`s`.`timemarked` - `pelister_mdl1`.`s`.`timemodified`)'
SELECT u.id,u.picture,u.firstname,u.lastname,u.imagealt,u.email,
s.id AS submissionid, s.grade, s.submissioncomment,
s.timemodified, s.timemarked,
COALESCE(SIGN(SIGN(s.timemarked) + SIGN(s.timemarked - s.timemodified)), 0) AS status FROM mdl_user u LEFT JOIN mdl_assignment_submissions s ON u.id = s.userid
AND s.assignment = 43 WHERE s.timemarked < s.timemodified AND u.id IN (120,122,123,124,125,130,132,138,139,140,142,143,144,147,148,149,151,153,155,156,157,152,160,164,158,167,168,169,171) ORDER BY lastname ASC
[array (
)]
SELECT u.id,u.picture,u.firstname,u.lastname,u.imagealt,u.email,
s.id AS submissionid, s.grade, s.submissioncomment,
s.timemodified, s.timemarked,
COALESCE(SIGN(SIGN(s.timemarked) + SIGN(s.timemarked - s.timemodified)), 0) AS status FROM mdl_user u LEFT JOIN mdl_assignment_submissions s ON u.id = s.userid
AND s.assignment = 43 WHERE s.timemarked < s.timemodified AND u.id IN (120,122,123,124,125,130,132,138,139,140,142,143,144,147,148,149,151,153,155,156,157,152,160,164,158,167,168,169,171) ORDER BY lastname ASC
[array (
)]
Stack trace:
- line 391 of /lib/dml/moodle_database.php: dml_read_exception thrown
- line 790 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 1303 of /mod/assignment/lib.php: call to mysqli_native_moodle_database->get_records_sql()
- line 642 of /mod/assignment/lib.php: call to assignment_base->display_submissions()
- line 57 of /mod/assignment/submissions.php: call to assignment_base->submissions()