]> git.mjollnir.org Git - moodle.git/commitdiff
Merged from MOODLE_14_STABLE: Fix for postgres-invalid-sql (must have AS between...
authormjollnir_ <mjollnir_>
Wed, 24 Nov 2004 23:24:32 +0000 (23:24 +0000)
committermjollnir_ <mjollnir_>
Wed, 24 Nov 2004 23:24:32 +0000 (23:24 +0000)
mod/glossary/sql.php

index 674c486b7cdd0394e03f7feffa5022f749838049..e578be30a457a55e71f7f800b22559594cac36a7 100644 (file)
             $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)