Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed2896d
)
MDL-40593 fixed SQL query to be postgres-compartible
author
Marina Glancy
<marina@moodle.com>
Tue, 9 Jul 2013 12:24:02 +0000
(22:24 +1000)
committer
Marina Glancy
<marina@moodle.com>
Tue, 9 Jul 2013 12:24:02 +0000
(22:24 +1000)
lib/coursecatlib.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/coursecatlib.php
b/lib/coursecatlib.php
index
c5fd1e6
..
b3ddf1a
100644
(file)
--- a/
lib/coursecatlib.php
+++ b/
lib/coursecatlib.php
@@
-1920,7
+1920,7
@@
class coursecat implements renderable, cacheable_object, IteratorAggregate {
} else if ($thislist === false) {
// We have $baselist cached but not $thislist. Simplier query is used to retrieve.
$ctxselect = context_helper::get_preload_record_columns_sql('ctx');
- $sql = "SELECT ctx.instanceid id, $ctxselect
+ $sql = "SELECT ctx.instanceid
AS
id, $ctxselect
FROM {context} ctx WHERE ctx.contextlevel = :contextcoursecat";
$contexts = $DB->get_records_sql($sql, array('contextcoursecat' => CONTEXT_COURSECAT));
$thislist = array();