Merged from MOODLE_14_STABLE: Fix for postgres-invalid-sql (must have AS between field and alias)

This commit is contained in:
mjollnir_
2004-11-24 23:24:32 +00:00
parent 7331b86485
commit 56e9c38161
+1 -1
View File
@@ -109,7 +109,7 @@
$where = '';
}
$sqlselect = "SELECT ge.id, $usernamefield $as pivot, u.id uid, ge.*";
$sqlselect = "SELECT ge.id, $usernamefield $as pivot, u.id as uid, ge.*";
$sqlfrom = "FROM {$CFG->prefix}glossary_entries ge, {$CFG->prefix}user u";
$sqlwhere = "WHERE ge.userid = u.id AND
(ge.approved != 0 $userid)