NOBUG: comment is a reserved word for oracle. I reserve my comments about it ;-)

This commit is contained in:
Eloy Lafuente
2010-03-22 17:49:42 +00:00
parent 438d73f84f
commit cea304d432
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -193,7 +193,7 @@ function xmldb_data_upgrade($oldversion) {
d.course AS courseid,
r.id AS itemid,
c.id AS commentid,
c.content AS comment,
c.content AS commentcontent,
c.format AS format,
c.created AS timemodified
FROM {data_comments} c, {data_records} r, {data} d
@@ -220,7 +220,7 @@ function xmldb_data_upgrade($oldversion) {
$cmt->itemid = $res->itemid;
$comment = new comment($cmt);
// comments class will throw an exception if error occurs
$cmt = $comment->add($res->comment, $res->format);
$cmt = $comment->add($res->commentcontent, $res->format);
if (!empty($cmt)) {
$DB->delete_records('data_comments', array('id'=>$res->commentid));
}
+2 -2
View File
@@ -217,7 +217,7 @@ function xmldb_glossary_upgrade($oldversion) {
g.course AS courseid,
e.id AS itemid,
c.id AS old_id,
c.entrycomment AS comment,
c.entrycomment AS commentcontent,
c.entrycommentformat AS format,
c.entrycommenttrust AS trust,
c.timemodified AS timemodified
@@ -244,7 +244,7 @@ function xmldb_glossary_upgrade($oldversion) {
$cmt->area = 'glossary_entry';
$cmt->itemid = $res->itemid;
$comment = new comment($cmt);
$cmt = $comment->add($res->comment, $res->format);
$cmt = $comment->add($res->commentcontent, $res->format);
if (!empty($cmt)) {
$DB->delete_records('glossary_comments', array('id'=>$res->old_id));
}