From: soranzo Date: Wed, 10 Jan 2007 02:26:25 +0000 (+0000) Subject: Incrementally use ->fields for recordsets, ->f is not supported by upstream adodb. X-Git-Tag: REL_4-1-1~22 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=58ba903b5293b369748919f42008a0997b7e097a;p=phppgadmin.git Incrementally use ->fields for recordsets, ->f is not supported by upstream adodb. --- diff --git a/classes/plugins/Slony.php b/classes/plugins/Slony.php index 7385d613..a6054af2 100755 --- a/classes/plugins/Slony.php +++ b/classes/plugins/Slony.php @@ -3,7 +3,7 @@ /** * A class that implements the Slony 1.0.x support plugin * - * $Id: Slony.php,v 1.13 2006/12/31 16:21:26 soranzo Exp $ + * $Id: Slony.php,v 1.14 2007/01/10 02:26:25 soranzo Exp $ */ include_once('./classes/plugins/Plugin.php'); @@ -58,12 +58,12 @@ class Slony extends Plugin { ORDER BY pn.nspname LIMIT 1"; $rs = $data->selectSet($sql); if ($rs->recordCount() == 1) { - $schema = $rs->f['schema']; + $schema = $rs->fields['schema']; $this->slony_schema = $schema; - $this->slony_owner = $rs->f['owner']; - $this->slony_comment = $rs->f['nspcomment']; + $this->slony_owner = $rs->fields['owner']; + $this->slony_comment = $rs->fields['nspcomment']; // Cluster name is schema minus "_" prefix. - $this->slony_cluster = $rs->f['cluster']; + $this->slony_cluster = $rs->fields['cluster']; $data->fieldClean($schema); $sql = "SELECT \"{$schema}\".slonyversion() AS version"; $version = $data->selectField($sql, 'version');