cvs: pear /MDB2/MDB2/Tools Manager.php

From: Date: Thu, 25 Nov 2004 11:34:24 +0000
Subject: cvs: pear /MDB2/MDB2/Tools Manager.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-26485@lists.php.net to get a copy of this message
lsmith Thu Nov 25 06:34:24 2004 EDT Modified files: /pear/MDB2/MDB2/Tools Manager.php Log: - updated to new transaction API http://cvs.php.net/diff.php/pear/MDB2/MDB2/Tools/Manager.php?r1=1.24&r2=1.25&ty=u Index: pear/MDB2/MDB2/Tools/Manager.php diff -u pear/MDB2/MDB2/Tools/Manager.php:1.24 pear/MDB2/MDB2/Tools/Manager.php:1.25 --- pear/MDB2/MDB2/Tools/Manager.php:1.24 Mon Nov 22 18:14:17 2004 +++ pear/MDB2/MDB2/Tools/Manager.php Thu Nov 25 06:34:24 2004 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@backendmedia.com> | // +----------------------------------------------------------------------+ // -// $Id: Manager.php,v 1.24 2004/11/22 23:14:17 lsmith Exp $ +// $Id: Manager.php,v 1.25 2004/11/25 11:34:24 lsmith Exp $ // require_once 'MDB2/Tools/Manager/Parser.php'; @@ -783,7 +783,7 @@ } $previous_database_name = $this->db->setDatabase($this->database_definition['name']); if (($support_transactions = $this->db->supports('transactions')) - && MDB2::isError($result = $this->db->autoCommit(false)) + && MDB2::isError($result = $this->db->beginTransaction()) ) { return $result; } @@ -830,7 +830,7 @@ } } else { if ($support_transactions) { - $res = $this->db->autoCommit(true); + $res = $this->db->commit(); if (MDB2::isError($res)) $result = $this->raiseError(MDB2_ERROR_MANAGER, null, null, 'Could not end transaction after successfully created the database ('. @@ -1535,7 +1535,7 @@ $previous_database_name = $this->db->getDatabase(); } if (($support_transactions = $this->db->supports('transactions')) - && MDB2::isError($result = $this->db->autoCommit(false)) + && MDB2::isError($result = $this->db->beginTransaction()) ) { return $result; } @@ -1569,7 +1569,7 @@ } } if ($support_transactions) { - $result = $this->db->autoCommit(true); + $result = $this->db->commit(); if (MDB2::isError($result)) { $result = $this->raiseError(MDB2_ERROR_MANAGER, null, null, 'Could not end transaction after successfully implemented the requested database alterations ('.

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