-
Bug
-
Resolution: Fixed
-
Major
-
2.6
-
MOODLE_26_STABLE
-
MOODLE_27_STABLE
-
MDL-43395-master -
- Run unit tests on all 5 database drivers
- Run behat tests on all 5 database drivers
- Verify: there are no failures relating to this change (debug messages about LIMIT clauses)
-
13
-
BACKEND Sprint 8
The parameters for get_records are:
get_records($table, array $conditions=null, $sort='', $fields='*', $limitfrom=0, $limitnum=0)
|
The parameters for get_records_sql are:
get_records_sql($sql, array $params=null, $limitfrom=0, $limitnum=0);
|
Note that if you are a silly developer like Dan, you might accidentally pass a sort to $limitfrom.
In that case, Moodle silently converts the string to an int without warning the developer. I propose to add a debugdeveloper warning for this.
- blocks
-
MDL-43678 get_records*_sql silently converts invalid limit param to integer (backport of MDL-43395)
-
- Closed
-
- caused a regression
-
MDL-47378 mod_assign: Grading table incorrect type of perpage preference
-
- Closed
-
- Discovered while testing
-
MDL-43720 Behat tests related with listing step defintions in Windows
-
- Open
-
-
MDL-43717 Behat test failure on 32bit PHP
-
- Closed
-
- has a non-specific relationship to
-
MDL-43677 Make stricter LIMIT param checking for -1, ''
-
- Closed
-
- Testing discovered
-
MDL-41062 Can not sort gradebook items.
-
- Closed
-