Permalink
Browse files

Postgresql wants 'as' be used.

  • Loading branch information...
paca70
paca70 committed Aug 26, 2004
1 parent bcdfed7 commit 5586395f75df8c3e634368917aa3e799746871d6
Showing with 2 additions and 2 deletions.
  1. +1 −1 mod/dialogue/lib.php
  2. +1 −1 mod/exercise/lib.php
View
@@ -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
View
@@ -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

0 comments on commit 5586395

Please sign in to comment.