fixed 'AS' for PostgreSQL; merged from MOODLE_15_STABLE

This commit is contained in:
skodak 2005-07-09 09:43:31 +00:00
parent f150292f82
commit 03c40bb7ec

View File

@ -33,7 +33,7 @@ $GRADEPREFSDEFAULTS = array('use_advanced' => 0,
function grade_get_category_weight($course, $category) {
global $CFG;
$sql = "SELECT id, weight, drop_x_lowest, bonus_points, hidden, c.id cat_id
$sql = "SELECT id, weight, drop_x_lowest, bonus_points, hidden, c.id AS cat_id
FROM {$CFG->prefix}grade_category c
WHERE c.courseid=$course
AND c.name='$category'";