fix some warning in the pgsql driver

This commit is contained in:
Robin Appelman 2012-01-13 20:04:59 +01:00
parent 37dbf48434
commit 1b1c4889fc
2 changed files with 4 additions and 4 deletions

View file

@ -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)) {

View file

@ -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;