* A class that implements the DB interface for Postgres
* Note: This class uses ADODB and returns RecordSets.
*
- * $Id: Postgres.php,v 1.294 2007/01/21 22:59:25 xzilla Exp $
+ * $Id: Postgres.php,v 1.295 2007/03/03 14:25:14 xzilla Exp $
*/
// @@@ THOUGHT: What about inherits? ie. use of ONLY???
}
$status = $this->execute($sql);
- if ($status != 0 || $this->conn->Affected_Rows() != 1) {
+ if ($status != 0) { // update failed
+ $this->rollbackTransaction();
+ return -1;
+ } elseif ($this->conn->Affected_Rows() != 1) { // more than one row could be updated
$this->rollbackTransaction();
return -2;
}
* @param $return_desc The return link name
* @param $page The current page
*
- * $Id: display.php,v 1.57 2007/01/03 15:35:42 soranzo Exp $
+ * $Id: display.php,v 1.58 2007/03/03 14:25:14 xzilla Exp $
*/
// Prevent timeouts on large exports (non-safe mode only)
global $lang;
global $PHP_SELF;
- $key = $_REQUEST['key'];
+ if (is_array($_REQUEST['key']))
+ $key = $_REQUEST['key'];
+ else
+ $key = unserialize($_REQUEST['key']);
if ($confirm) {
$misc->printTrail($_REQUEST['subject']);