summaryrefslogtreecommitdiff
path: root/database
diff options
context:
space:
mode:
authorGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-03-08 11:04:03 +0000
committerGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-03-08 11:04:03 +0000
commit46ad261902db33f3f2407e1157f5ccc27f87b7e2 (patch)
tree34d841ac93b26790eb13dbdc6df66b2caba65b2a /database
parent89b9c26e00f5070731b8b846c9e0e23884c6e44e (diff)
downloadbrdo-46ad261902db33f3f2407e1157f5ccc27f87b7e2.tar.gz
brdo-46ad261902db33f3f2407e1157f5ccc27f87b7e2.tar.bz2
#52921, Error in system_update_177 with postgres, patch by Steve Ratcliffe
Diffstat (limited to 'database')
-rw-r--r--database/updates.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/database/updates.inc b/database/updates.inc
index 28cf5e32a..f9fcca292 100644
--- a/database/updates.inc
+++ b/database/updates.inc
@@ -1688,7 +1688,7 @@ function system_update_177() {
if ($admin_setting = variable_get('user_mail_' . $message_id, FALSE)) {
$admin_setting = '<pre>'. $admin_setting .'</pre>'; //else it renders horrible
watchdog('legacy', $admin_setting);
- $last = db_fetch_object(db_query('SELECT max(wid) wid FROM {watchdog}'));
+ $last = db_fetch_object(db_query('SELECT max(wid) AS wid FROM {watchdog}'));
variable_del('user_mail_'. $message_id); //deleting is requird, because _user_mail_text() checks for existance.
$i++;
$ret[$i]['query'] = l(t('The mail template %message_id is reset to the default, and the old one is saved.', array('%message_id' => 'user_mail_'. $message_id)),'admin/logs/event/'. $last->wid);