|
@@ 805-811 (lines=7) @@
|
| 802 |
|
|
| 803 |
|
// If IGNORE is set, we use savepoints to emulate mysql's behavior |
| 804 |
|
$savepoint = null; |
| 805 |
|
if ( in_array( 'IGNORE', $options ) ) { |
| 806 |
|
$savepoint = new SavepointPostgres( $this, 'mw' ); |
| 807 |
|
$olde = error_reporting( 0 ); |
| 808 |
|
// For future use, we may want to track the number of actual inserts |
| 809 |
|
// Right now, insert (all writes) simply return true/false |
| 810 |
|
$numrowsinserted = 0; |
| 811 |
|
} |
| 812 |
|
|
| 813 |
|
$sql = "INSERT INTO $table (" . implode( ',', $keys ) . ') VALUES '; |
| 814 |
|
|
|
@@ 920-925 (lines=6) @@
|
| 917 |
|
* Ignore LOW PRIORITY option, since it is MySQL-specific |
| 918 |
|
*/ |
| 919 |
|
$savepoint = null; |
| 920 |
|
if ( in_array( 'IGNORE', $insertOptions ) ) { |
| 921 |
|
$savepoint = new SavepointPostgres( $this, 'mw' ); |
| 922 |
|
$olde = error_reporting( 0 ); |
| 923 |
|
$numrowsinserted = 0; |
| 924 |
|
$savepoint->savepoint(); |
| 925 |
|
} |
| 926 |
|
|
| 927 |
|
if ( !is_array( $selectOptions ) ) { |
| 928 |
|
$selectOptions = [ $selectOptions ]; |