-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
3.9.4
-
None
-
2021010800
-
MOODLE_39_STABLE
Postgres logs show an error when executing count function on character data.
ERROR: operator does not exist: character varying >= integer at character 55
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
STATEMENT: SELECT COUNT('x') FROM mdl_local_reminders WHERE time >= 1611850862
This comes from clean_local_reminders_logs function around line 520
$recordcount = $DB->count_records_select(REMINDERS_CLEAN_TABLE, "time >= $cutofftime");