Index: trunk/phase3/includes/db/DatabaseMysql.php |
— | — | @@ -158,7 +158,7 @@ |
159 | 159 | $this->mOpened = false; |
160 | 160 | if ( $this->mConn ) { |
161 | 161 | if ( $this->trxLevel() ) { |
162 | | - $this->commit(); |
| 162 | + $this->commit( __METHOD__ ); |
163 | 163 | } |
164 | 164 | return mysql_close( $this->mConn ); |
165 | 165 | } else { |
— | — | @@ -558,7 +558,7 @@ |
559 | 559 | |
560 | 560 | # Commit any open transactions |
561 | 561 | if ( $this->mTrxLevel ) { |
562 | | - $this->commit(); |
| 562 | + $this->commit( __METHOD__ ); |
563 | 563 | } |
564 | 564 | |
565 | 565 | if ( !is_null( $this->mFakeSlaveLag ) ) { |
Index: trunk/phase3/includes/db/DatabaseOracle.php |
— | — | @@ -292,7 +292,7 @@ |
293 | 293 | $this->mOpened = false; |
294 | 294 | if ( $this->mConn ) { |
295 | 295 | if ( $this->mTrxLevel ) { |
296 | | - $this->commit(); |
| 296 | + $this->commit( __METHOD__ ); |
297 | 297 | } |
298 | 298 | return oci_close( $this->mConn ); |
299 | 299 | } else { |
Index: trunk/phase3/includes/db/DatabasePostgres.php |
— | — | @@ -466,7 +466,7 @@ |
467 | 467 | $didbegin = 0; |
468 | 468 | if ( $ignore ) { |
469 | 469 | if ( !$this->mTrxLevel ) { |
470 | | - $this->begin(); |
| 470 | + $this->begin( __METHOD__ ); |
471 | 471 | $didbegin = 1; |
472 | 472 | } |
473 | 473 | $olde = error_reporting( 0 ); |
Index: trunk/phase3/includes/db/DatabaseIbm_db2.php |
— | — | @@ -561,7 +561,7 @@ |
562 | 562 | $this->mOpened = false; |
563 | 563 | if ( $this->mConn ) { |
564 | 564 | if ( $this->trxLevel() > 0 ) { |
565 | | - $this->commit(); |
| 565 | + $this->commit( __METHOD__ ); |
566 | 566 | } |
567 | 567 | return db2_close( $this->mConn ); |
568 | 568 | } else { |
— | — | @@ -577,12 +577,12 @@ |
578 | 578 | public function lastError() { |
579 | 579 | $connerr = db2_conn_errormsg(); |
580 | 580 | if ( $connerr ) { |
581 | | - //$this->rollback(); |
| 581 | + //$this->rollback( __METHOD__ ); |
582 | 582 | return $connerr; |
583 | 583 | } |
584 | 584 | $stmterr = db2_stmt_errormsg(); |
585 | 585 | if ( $stmterr ) { |
586 | | - //$this->rollback(); |
| 586 | + //$this->rollback( __METHOD__ ); |
587 | 587 | return $stmterr; |
588 | 588 | } |
589 | 589 | |
— | — | @@ -1084,7 +1084,7 @@ |
1085 | 1085 | $this->mAffectedRows = $numrowsinserted; |
1086 | 1086 | } |
1087 | 1087 | // commit either way |
1088 | | - $this->commit(); |
| 1088 | + $this->commit( __METHOD__ ); |
1089 | 1089 | $this->freePrepared( $stmt ); |
1090 | 1090 | |
1091 | 1091 | return $res; |
Index: trunk/phase3/includes/db/DatabaseSqlite.php |
— | — | @@ -122,7 +122,7 @@ |
123 | 123 | function close() { |
124 | 124 | $this->mOpened = false; |
125 | 125 | if ( is_object( $this->mConn ) ) { |
126 | | - if ( $this->trxLevel() ) $this->commit(); |
| 126 | + if ( $this->trxLevel() ) $this->commit( __METHOD__ ); |
127 | 127 | $this->mConn = null; |
128 | 128 | } |
129 | 129 | return true; |
— | — | @@ -636,7 +636,7 @@ |
637 | 637 | |
638 | 638 | function begin( $fname = '' ) { |
639 | 639 | if ( $this->mTrxLevel == 1 ) { |
640 | | - $this->commit(); |
| 640 | + $this->commit( __METHOD__ ); |
641 | 641 | } |
642 | 642 | $this->mConn->beginTransaction(); |
643 | 643 | $this->mTrxLevel = 1; |
Index: trunk/phase3/includes/db/LoadBalancer.php |
— | — | @@ -894,7 +894,7 @@ |
895 | 895 | foreach ( $this->mConns as $conns2 ) { |
896 | 896 | foreach ( $conns2 as $conns3 ) { |
897 | 897 | foreach ( $conns3 as $conn ) { |
898 | | - $conn->commit(); |
| 898 | + $conn->commit( __METHOD__ ); |
899 | 899 | } |
900 | 900 | } |
901 | 901 | } |