|
@@ 695-706 (lines=12) @@
|
| 692 |
|
|
| 693 |
|
MediaWiki\suppressWarnings(); |
| 694 |
|
|
| 695 |
|
if ( oci_execute( $stmt, $this->execFlags() ) === false ) { |
| 696 |
|
$e = oci_error( $stmt ); |
| 697 |
|
if ( !$this->ignoreDupValOnIndex || $e['code'] != '1' ) { |
| 698 |
|
$this->reportQueryError( $e['message'], $e['code'], $sql, __METHOD__ ); |
| 699 |
|
|
| 700 |
|
return false; |
| 701 |
|
} else { |
| 702 |
|
$this->mAffectedRows = oci_num_rows( $stmt ); |
| 703 |
|
} |
| 704 |
|
} else { |
| 705 |
|
$this->mAffectedRows = oci_num_rows( $stmt ); |
| 706 |
|
} |
| 707 |
|
|
| 708 |
|
MediaWiki\restoreWarnings(); |
| 709 |
|
|
|
@@ 1489-1500 (lines=12) @@
|
| 1486 |
|
|
| 1487 |
|
MediaWiki\suppressWarnings(); |
| 1488 |
|
|
| 1489 |
|
if ( oci_execute( $stmt, $this->execFlags() ) === false ) { |
| 1490 |
|
$e = oci_error( $stmt ); |
| 1491 |
|
if ( !$this->ignoreDupValOnIndex || $e['code'] != '1' ) { |
| 1492 |
|
$this->reportQueryError( $e['message'], $e['code'], $sql, __METHOD__ ); |
| 1493 |
|
|
| 1494 |
|
return false; |
| 1495 |
|
} else { |
| 1496 |
|
$this->mAffectedRows = oci_num_rows( $stmt ); |
| 1497 |
|
} |
| 1498 |
|
} else { |
| 1499 |
|
$this->mAffectedRows = oci_num_rows( $stmt ); |
| 1500 |
|
} |
| 1501 |
|
|
| 1502 |
|
MediaWiki\restoreWarnings(); |
| 1503 |
|
|