From dadcaeb28b3233baca789a88dd9e2795a7f38f85 Mon Sep 17 00:00:00 2001 From: skeeter Date: Thu, 26 Oct 2000 02:30:01 +0000 Subject: [PATCH] cleaned up the errors for initial try at 0.9.3pre? --- setup/upgradetables_mysql.inc.php | 1 + setup/upgradetables_pgsql.inc.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/setup/upgradetables_mysql.inc.php b/setup/upgradetables_mysql.inc.php index 41674b06fd..833a9a72fa 100644 --- a/setup/upgradetables_mysql.inc.php +++ b/setup/upgradetables_mysql.inc.php @@ -241,6 +241,7 @@ } function update_owner($table,$field){ + global $db; $db->query("select distinct($field) from $table"); if ($db->num_rows()) { while($db->next_record()) { diff --git a/setup/upgradetables_pgsql.inc.php b/setup/upgradetables_pgsql.inc.php index 0b0776d9ab..c0aa4c58c3 100644 --- a/setup/upgradetables_pgsql.inc.php +++ b/setup/upgradetables_pgsql.inc.php @@ -230,6 +230,7 @@ } function update_owner($table,$field){ + global $db; $db->query("select distinct($field) from $table"); if ($db->num_rows()) { while($db->next_record()) { @@ -238,7 +239,7 @@ for($i=0;$iquery("select account_id From accounts where account_lid='".$owner[$i]."'"); $account_id[$i] = $db->f("account_id"); - $db->query("update $table set $field=".$account_id[$i]. where $field='".$owner[$i]."'"); + $db->query("update $table set $field=".$account_id[$i]." where $field='".$owner[$i]."'"); } } $db->query("alter table $table change $field $field int(11) NOT NULL");