| @@ 632-640 (lines=9) @@ | ||
| 629 | ||
| 630 | $tempres = (bool)$this->query( $tempsql, $fname, $savepoint ); |
|
| 631 | ||
| 632 | if ( $savepoint ) { |
|
| 633 | $bar = pg_result_error( $this->mLastResult ); |
|
| 634 | if ( $bar != false ) { |
|
| 635 | $savepoint->rollback(); |
|
| 636 | } else { |
|
| 637 | $savepoint->release(); |
|
| 638 | $numrowsinserted++; |
|
| 639 | } |
|
| 640 | } |
|
| 641 | ||
| 642 | // If any of them fail, we fail overall for this function call |
|
| 643 | // Note that this will be ignored if IGNORE is set |
|
| @@ 657-665 (lines=9) @@ | ||
| 654 | ||
| 655 | $sql .= '(' . $this->makeList( $args ) . ')'; |
|
| 656 | $res = (bool)$this->query( $sql, $fname, $savepoint ); |
|
| 657 | if ( $savepoint ) { |
|
| 658 | $bar = pg_result_error( $this->mLastResult ); |
|
| 659 | if ( $bar != false ) { |
|
| 660 | $savepoint->rollback(); |
|
| 661 | } else { |
|
| 662 | $savepoint->release(); |
|
| 663 | $numrowsinserted++; |
|
| 664 | } |
|
| 665 | } |
|
| 666 | } |
|
| 667 | if ( $savepoint ) { |
|
| 668 | error_reporting( $olde ); |
|