Fix for postgres-invalid-sql (must have AS between field and alias)

This commit is contained in:
mjollnir_
2004-11-24 23:23:09 +00:00
parent 6f454ff99a
commit a961a2b851
+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)