Index: trunk/extensions/Contest/includes/ContestDBObject.php |
— | — | @@ -254,7 +254,8 @@ |
255 | 255 | return $dbw->update( |
256 | 256 | $this->getDBTable(), |
257 | 257 | $this->getWriteValues(), |
258 | | - array( $this->getFieldPrefix() . 'id' => $this->getId() ) |
| 258 | + array( $this->getFieldPrefix() . 'id' => $this->getId() ), |
| 259 | + __METHOD__ |
259 | 260 | ); |
260 | 261 | } |
261 | 262 | |
— | — | @@ -270,7 +271,9 @@ |
271 | 272 | |
272 | 273 | $result = $dbw->insert( |
273 | 274 | $this->getDBTable(), |
274 | | - $this->getWriteValues() |
| 275 | + $this->getWriteValues(), |
| 276 | + __METHOD__, |
| 277 | + array( 'IGNORE' ) |
275 | 278 | ); |
276 | 279 | |
277 | 280 | $this->setField( 'id', $dbw->insertId() ); |
— | — | @@ -534,7 +537,8 @@ |
535 | 538 | $success = $dbw->update( |
536 | 539 | $this->getDBTable(), |
537 | 540 | array( "$fullField=$fullField" . ( $isNegative ? '-' : '+' ) . $absoluteAmount ), |
538 | | - array( $this->getPrefixedField( 'id' ) => $this->getId() ) |
| 541 | + array( $this->getPrefixedField( 'id' ) => $this->getId() ), |
| 542 | + __METHOD__ |
539 | 543 | ); |
540 | 544 | |
541 | 545 | if ( $success && $this->hasField( $field ) ) { |
— | — | @@ -673,7 +677,8 @@ |
674 | 678 | return $dbw->update( |
675 | 679 | $this->getDBTable(), |
676 | 680 | $this->getPrefixedValues( $values ), |
677 | | - $this->getPrefixedValues( $conditions ) |
| 681 | + $this->getPrefixedValues( $conditions ), |
| 682 | + __METHOD__ |
678 | 683 | ); |
679 | 684 | } |
680 | 685 | |