fixing a small syntax oddity that breaks get_my_courses in postgres. quoting " means escape table, not string

This commit is contained in:
mjollnir_ 2007-07-14 19:36:59 +00:00
parent d3f31bf2d9
commit 808fae8f05

View File

@ -760,7 +760,7 @@ SELECT
FROM
{$CFG->prefix}role_assignments ra
INNER JOIN {$CFG->prefix}context x ON x.id=ra.contextid
INNER JOIN {$CFG->prefix}course_categories a ON (a.path LIKE ".sql_concat('"%/"', 'x.instanceid', '"/%"')." OR a.id=x.instanceid) AND x.contextlevel=40
INNER JOIN {$CFG->prefix}course_categories a ON (a.path LIKE ".sql_concat("'%/'", 'x.instanceid', "'/%'")." OR a.id=x.instanceid) AND x.contextlevel=40
INNER JOIN {$CFG->prefix}course c ON c.category=a.id
WHERE
ra.userid=$userid