From: Greg Sabino Mullane Date: Wed, 5 Jul 2006 04:06:29 +0000 (+0000) Subject: Add begin(), does-nothing immediatecommit() X-Git-Tag: 1.31.0-rc.0~56406 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=623eb4f308cb57cd6b8bd24dabf357077e14a4c4;p=lhc%2Fweb%2Fwiklou.git Add begin(), does-nothing immediatecommit() --- diff --git a/includes/DatabasePostgres.php b/includes/DatabasePostgres.php index 7d47ce54d6..5897386fc6 100644 --- a/includes/DatabasePostgres.php +++ b/includes/DatabasePostgres.php @@ -546,7 +546,14 @@ class DatabasePostgres extends Database { return $type; } - function commit( $fname = 'Database::commit' ) { + function begin( $fname = 'DatabasePostgrs::begin' ) { + $this->query( 'BEGIN', $fname ); + $this->mTrxLevel = 1; + } + function immediateCommit( $fname = 'DatabasePostgres::immediateCommit' ) { + return true; + } + function commit( $fname = 'DatabasePostgres::commit' ) { $this->query( 'COMMIT', $fname ); $this->mTrxLevel = 0; }