cvs: pear /MDB manager.php

From: Date: Tue, 21 May 2002 16:30:19 +0000
Subject: cvs: pear /MDB manager.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-4017@lists.php.net to get a copy of this message
lsmith Tue May 21 12:30:19 2002 EDT Modified files: /pear/MDB manager.php Log: moved error handling over to pear error handling (fairly complete not yet tested enough though) added some phpdoc comments from the Metabase documentation Index: pear/MDB/manager.php diff -u pear/MDB/manager.php:1.4 pear/MDB/manager.php:1.5 --- pear/MDB/manager.php:1.4 Fri May 17 10:15:29 2002 +++ pear/MDB/manager.php Tue May 21 12:30:19 2002 @@ -2,7 +2,7 @@ /* * manager.php * - * @(#) $Header: /usr/repository/pear/MDB/manager.php,v 1.4 2002/05/17 14:15:29 lsmith Exp $ + * @(#) $Header: /usr/repository/pear/MDB/manager.php,v 1.5 2002/05/21 16:30:19 lsmith Exp $ * */ @@ -35,7 +35,7 @@ function closeSetup() { if (is_object($this->database)) { - $this->database->closeSetup(); + $this->database->close(); } } @@ -314,10 +314,10 @@ if (!($result = $this->database->query("SELECT $field FROM $table"))) { return($this->database->error()); } - if (($rows = $this->database->numberOfRows($result))) { + if (($rows = $this->database->numRows($result))) { for($row = 0; $row < $rows; $row++) { if (!$this->database->resultIsNull($result, $row, 0) - && ($value = $this->database->fetch($result, $row, 0)+1)>$start) + && ($value = $this->database->fetch($result, $row, 0)+1) > $start) { $start = $value; @@ -1055,13 +1055,13 @@ if ($dump_definition) { $start = $sequence_definition["start"]; } else { - if ($this->database->support("GetSequenceCurrentValue")) { - if (!$this->database->getSequenceCurrentValue($sequence_name, $start)) { + if ($this->database->support("currId")) { + if (!$this->database->currId($sequence_name, $start)) { return(0); } $start++; } else { - if (!$this->database->getSequencenextValue($sequence_name, $start)) { + if (!$this->database->nextId($sequence_name, $start)) { return(0); } $this->warnings[] = "database does not support getting current sequence value, the sequence value was incremented"; @@ -1217,7 +1217,7 @@ return($this->database->error()); } if (!$support_summary_functions) { - $rows = $this->database->numberOfRows(result); + $rows = $this->database->numRows(result); } if ($rows>0) { $output("$eol <initialization>$eol"); @@ -1485,7 +1485,7 @@ } if (isset($indexes[key($indexes)]["ChangedFields"])) { - $this->database->sebug("\tChanged index '".key($indexes)."' on table '$table_name'"); + $this->database->debug("\tChanged index '".key($indexes)."' on table '$table_name'"); } } } @@ -1539,7 +1539,7 @@ return("Could not parse database schema file: $error"); } $this->database_definition = $database_definition; - if (strcmp($error = $this->SetupDatabase($setup_arguments), "")) { + if (strcmp($error = $this->setupDatabase($setup_arguments), "")) { return("Could not setup database: $error"); } return($this->dumpDatabase($dump_arguments));

« previous php.pear.cvs (#4017) next »