From: Robin Appelman Date: Fri, 13 Jan 2012 19:04:59 +0000 (+0100) Subject: fix some warning in the pgsql driver X-Git-Tag: v3.0~59^2~7 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1b1c4889fc249e8cd27e2c3357868990abb2aa1e;p=nextcloud-server.git fix some warning in the pgsql driver --- diff --git a/3rdparty/MDB2/Driver/Manager/pgsql.php b/3rdparty/MDB2/Driver/Manager/pgsql.php index 490f697aa5b..7542e9e8329 100644 --- a/3rdparty/MDB2/Driver/Manager/pgsql.php +++ b/3rdparty/MDB2/Driver/Manager/pgsql.php @@ -499,7 +499,7 @@ class MDB2_Driver_Manager_pgsql extends MDB2_Driver_Manager_Common * @return mixed array of view names on success, a MDB2 error on failure * @access public */ - function listViews() + function listViews($database = null) { $db =& $this->getDBInstance(); if (PEAR::isError($db)) { @@ -631,7 +631,7 @@ class MDB2_Driver_Manager_pgsql extends MDB2_Driver_Manager_Common * @return mixed array of table names on success, a MDB2 error on failure * @access public */ - function listTables() + function listTables($database = null) { $db =& $this->getDBInstance(); if (PEAR::isError($db)) { @@ -922,7 +922,7 @@ class MDB2_Driver_Manager_pgsql extends MDB2_Driver_Manager_Common * @return mixed array of sequence names on success, a MDB2 error on failure * @access public */ - function listSequences() + function listSequences($database = null) { $db =& $this->getDBInstance(); if (PEAR::isError($db)) { diff --git a/3rdparty/MDB2/Driver/pgsql.php b/3rdparty/MDB2/Driver/pgsql.php index 6108f18dec1..13fea690680 100644 --- a/3rdparty/MDB2/Driver/pgsql.php +++ b/3rdparty/MDB2/Driver/pgsql.php @@ -1193,7 +1193,7 @@ class MDB2_Result_pgsql extends MDB2_Result_Common if ($object_class == 'stdClass') { $row = (object) $row; } else { - $row = &new $object_class($row); + $row = new $object_class($row); } } ++$this->rownum;