| @@ 840-848 (lines=9) @@ | ||
| 837 | ||
| 838 | $tempres = (bool)$this->query( $tempsql, $fname, $savepoint ); |
|
| 839 | ||
| 840 | if ( $savepoint ) { |
|
| 841 | $bar = pg_result_error( $this->mLastResult ); |
|
| 842 | if ( $bar != false ) { |
|
| 843 | $savepoint->rollback(); |
|
| 844 | } else { |
|
| 845 | $savepoint->release(); |
|
| 846 | $numrowsinserted++; |
|
| 847 | } |
|
| 848 | } |
|
| 849 | ||
| 850 | // If any of them fail, we fail overall for this function call |
|
| 851 | // Note that this will be ignored if IGNORE is set |
|
| @@ 865-873 (lines=9) @@ | ||
| 862 | ||
| 863 | $sql .= '(' . $this->makeList( $args ) . ')'; |
|
| 864 | $res = (bool)$this->query( $sql, $fname, $savepoint ); |
|
| 865 | if ( $savepoint ) { |
|
| 866 | $bar = pg_result_error( $this->mLastResult ); |
|
| 867 | if ( $bar != false ) { |
|
| 868 | $savepoint->rollback(); |
|
| 869 | } else { |
|
| 870 | $savepoint->release(); |
|
| 871 | $numrowsinserted++; |
|
| 872 | } |
|
| 873 | } |
|
| 874 | } |
|
| 875 | if ( $savepoint ) { |
|
| 876 | error_reporting( $olde ); |
|