cvs: pear /MDB manager.php
| From: | Lukas Smith | Date: | Thu, 20 Jun 2002 11:58:03 +0000 |
| Subject: | cvs: pear /MDB manager.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-4702@lists.php.net to get a copy of this message | ||
lsmith Thu Jun 20 07:58:03 2002 EDT
Modified files:
/pear/MDB manager.php
Log:
changed the transaction method names to match the PEAR DB API
Index: pear/MDB/manager.php
diff -u pear/MDB/manager.php:1.11 pear/MDB/manager.php:1.12
--- pear/MDB/manager.php:1.11 Wed Jun 12 08:55:27 2002
+++ pear/MDB/manager.php Thu Jun 20 07:58:02 2002
@@ -2,7 +2,7 @@
/*
* manager.php
*
- * @(#) $Header: /usr/repository/pear/MDB/manager.php,v 1.11 2002/06/12 12:55:27 lsmith Exp $
+ * @(#) $Header: /usr/repository/pear/MDB/manager.php,v 1.12 2002/06/20 11:58:02 lsmith Exp $
*
*/
@@ -406,7 +406,7 @@
}
$previous_database_name =
$this->database->setDatabase($this->database_definition["name"]);
if (($support_transactions = $this->database->support("Transactions"))
- && MDB::isError($result = $this->database->autoCommitTransactions(0)))
+ && MDB::isError($result = $this->database->autoCommit(FALSE)))
{
return $result;
}
@@ -446,7 +446,7 @@
if (MDB::isError($result)) {
if ($created_objects) {
if ($support_transactions) {
- $res = $this->database->rollbackTransaction();
+ $res = $this->database->rollback();
if (MDB::isError($res))
$result = PEAR::raiseError(NULL, DB_ERROR_MANAGER, NULL, NULL,
'Could not rollback the partially created database alterations
('
@@ -461,7 +461,7 @@
}
} else {
if ($support_transactions) {
- $res = $this->database->autoCommitTransactions(1);
+ $res = $this->database->autoCommit(TRUE);
if (MDB::isError($res))
$result = PEAR::raiseError(NULL, DB_ERROR_MANAGER, NULL, NULL,
'Could not end transaction after successfully created the database
('
@@ -944,7 +944,7 @@
$previous_database_name =
$this->database->setDatabase($this->database_definition["name"]);
if (($support_transactions = $this->database->support("Transactions"))
- && MDB::isError($result = $this->database->autoCommitTransactions(0))) {
+ && MDB::isError($result = $this->database->autoCommit(FALSE))) {
return $result;
}
$error = "";
@@ -1140,7 +1140,7 @@
&& MDB::isError($result))
{
if ($support_transactions) {
- $res = $this->database->rollbackTransaction();
+ $res = $this->database->rollback();
if (MDB::isError($res))
$result = PEAR::raiseError(NULL, DB_ERROR_MANAGER, NULL, NULL,
'Could not rollback the partially created database alterations ('
@@ -1154,7 +1154,7 @@
}
}
if ($support_transactions) {
- $result = $this->database->autoCommitTransactions(1);
+ $result = $this->database->autoCommit(TRUE);
if (MDB::isError($result)) {
$result = PEAR::raiseError(NULL, DB_ERROR_MANAGER, NULL, NULL,
'Could not end transaction after successfully implemented the requested
database alterations ('