Got rid of remaining usages of immediateBegin()/immediateCommit(), marked these funct...
authorMax Semenik <maxsem@users.mediawiki.org>
Mon, 5 Jul 2010 19:47:46 +0000 (19:47 +0000)
committerMax Semenik <maxsem@users.mediawiki.org>
Mon, 5 Jul 2010 19:47:46 +0000 (19:47 +0000)
includes/db/Database.php
includes/db/DatabaseOracle.php
includes/db/DatabasePostgres.php

index 5461398..444c558 100644 (file)
@@ -2002,6 +2002,7 @@ abstract class DatabaseBase {
         * @deprecated use begin()
         */
        function immediateBegin( $fname = 'Database::immediateBegin' ) {
+               wfDeprecated( __METHOD__ );
                $this->begin();
        }
 
@@ -2010,6 +2011,7 @@ abstract class DatabaseBase {
         * @deprecated use commit()
         */
        function immediateCommit( $fname = 'Database::immediateCommit' ) {
+               wfDeprecated( __METHOD__ );
                $this->commit();
        }
 
index aab5f03..f1b54fa 100644 (file)
@@ -909,10 +909,6 @@ class DatabaseOracle extends DatabaseBase {
                $this->mTrxLevel = 1;
        }
 
-       function immediateCommit( $fname = '' ) {
-               return true;
-       }
-
        function commit( $fname = '' ) {
                oci_commit( $this->mConn );
                $this->mTrxLevel = 0;
index 578f12f..226803f 100644 (file)
@@ -1284,9 +1284,7 @@ SQL;
                $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;