-
Bug
-
Resolution: Fixed
-
Major
-
1.8.3, 1.9
-
None
-
Reported at PostgreSQL 8.0
-
PostgreSQL
-
MOODLE_18_STABLE, MOODLE_19_STABLE
-
MOODLE_18_STABLE, MOODLE_19_STABLE
See mod/data/field/date/field.class.php :
function get_sort_sql($fieldname) {
return 'CAST('.$fieldname.' AS unsigned)';
}
This causes problem at PostgreSQL as there is no such type "unsigned": ERROR: type "unsigned" does not exist. Note that CAST() is SQL standard but the target datatype has to be known for the SQL environement.
No records are displayed.
Assigning this to myself as a part of my Bugathon run.
- has been marked as being related by
-
MDL-80286 Database date type fields with values smaller than -2147483648 lead to "Error reading database" exceptions
- Closed