Changeset 7632 for trunk/zpush/backend
- Timestamp:
- 12/10/12 13:26:17 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zpush/backend/expresso/providers/contactProvider.php
r7631 r7632 387 387 388 388 try { 389 $result = pg_query($this->db,"BEGIN;"); 390 if ($result == FALSE) throw new Exception(pg_last_error($this->db)); 389 391 390 $result_contact = pg_query($this->db, "select last_update from phpgw_cc_contact where id_contact = " . $id . ";"); 392 391 if ($result_contact == FALSE) throw new Exception(pg_last_error($this->db)); … … 400 399 } 401 400 } 402 $result = pg_query($this->db,"COMMIT;"); 403 if ($result == FALSE) throw new Exception(pg_last_error($this->db)); 401 404 402 } catch (Exception $e) { 405 pg_query($this->db,"ROLLBACK;");406 403 debugLog("exception -> " . $e->getMessage() . " - ARQUIVO: " . $e->getFile() . " - LINHA: " . $e->getLine()); 407 404 }
Note: See TracChangeset
for help on using the changeset viewer.