From 623eb4f308cb57cd6b8bd24dabf357077e14a4c4 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Wed, 5 Jul 2006 04:06:29 +0000 Subject: [PATCH] Add begin(), does-nothing immediatecommit() --- includes/DatabasePostgres.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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; } -- 2.20.1