| @@ 597-605 (lines=9) @@ | ||
| 594 | ||
| 595 | $tempres = (bool)$this->query( $tempsql, $fname, $savepoint ); |
|
| 596 | ||
| 597 | if ( $savepoint ) { |
|
| 598 | $bar = pg_result_error( $this->mLastResult ); |
|
| 599 | if ( $bar != false ) { |
|
| 600 | $savepoint->rollback(); |
|
| 601 | } else { |
|
| 602 | $savepoint->release(); |
|
| 603 | $numrowsinserted++; |
|
| 604 | } |
|
| 605 | } |
|
| 606 | ||
| 607 | // If any of them fail, we fail overall for this function call |
|
| 608 | // Note that this will be ignored if IGNORE is set |
|
| @@ 622-630 (lines=9) @@ | ||
| 619 | ||
| 620 | $sql .= '(' . $this->makeList( $args ) . ')'; |
|
| 621 | $res = (bool)$this->query( $sql, $fname, $savepoint ); |
|
| 622 | if ( $savepoint ) { |
|
| 623 | $bar = pg_result_error( $this->mLastResult ); |
|
| 624 | if ( $bar != false ) { |
|
| 625 | $savepoint->rollback(); |
|
| 626 | } else { |
|
| 627 | $savepoint->release(); |
|
| 628 | $numrowsinserted++; |
|
| 629 | } |
|
| 630 | } |
|
| 631 | } |
|
| 632 | if ( $savepoint ) { |
|
| 633 | error_reporting( $olde ); |
|