]> git.mjollnir.org Git - moodle.git/commitdiff
Postgresql wants 'as' be used.
authorpaca70 <paca70>
Thu, 26 Aug 2004 18:50:08 +0000 (18:50 +0000)
committerpaca70 <paca70>
Thu, 26 Aug 2004 18:50:08 +0000 (18:50 +0000)
mod/dialogue/lib.php
mod/exercise/lib.php

index fc36fbfab17fa099c6679a412e7a3829081ab329..2057bac50e9e22c037f2c4bdf1536940e88841b4 100644 (file)
@@ -433,7 +433,7 @@ function dialogue_get_open_conversations($course) {
     if (empty($USER->id)) {
         return false;
     }
-    if ($conversations = get_records_sql("SELECT d.name dialoguename, c.id, c.dialogueid, c.timemodified, c.lastid
+    if ($conversations = get_records_sql("SELECT d.name as dialoguename, c.id, c.dialogueid, c.timemodified, c.lastid
                             FROM {$CFG->prefix}dialogue d, {$CFG->prefix}dialogue_conversations c
                             WHERE d.course = $course->id
                                 AND c.dialogueid = d.id
index ff188723109265fc0bc1c537e762f0e534057790..32c3cb37ab420b1c9e185e76c87dc506f439814b 100644 (file)
@@ -625,7 +625,7 @@ function exercise_get_submit_logs($course, $timestart) {
     global $CFG, $USER;
     
     $timethen = time() - $CFG->maxeditingtime;
-    return get_records_sql("SELECT l.time, l.url, u.firstname, u.lastname, l.info exerciseid, e.name
+    return get_records_sql("SELECT l.time, l.url, u.firstname, u.lastname, l.info as exerciseid, e.name
                              FROM {$CFG->prefix}log l,
                                 {$CFG->prefix}exercise e, 
                                 {$CFG->prefix}user u