- Timestamp:
- 12/10/12 10:17:26 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zpush/backend/expresso/providers/contactProvider.php
r7589 r7631 134 134 $ids = array(); 135 135 try { 136 $result = pg_query($this->db,"BEGIN;");137 136 if ($result == FALSE) throw new Exception(pg_last_error($this->db)); 138 137 $result = pg_query($this->db, "select given_names, family_names, last_update, id_contact from phpgw_cc_contact where id_owner = " . $this->_uidnumber . ";"); … … 145 144 $messages[] = $message; 146 145 } 147 $result = pg_query($this->db,"COMMIT;");148 146 if ($result == FALSE) throw new Exception(pg_last_error($this->db)); 149 147 } catch (Exception $e) { 150 pg_query($this->db,"ROLLBACK;");151 148 // debugLog("exception -> " . $e->getMessage() . " - ARQUIVO: " . $e->getFile() . " - LINHA: " . $e->getLine()); 152 149 } … … 176 173 $message = new SyncContact(); 177 174 try { 178 $result = pg_query($this->db,"BEGIN;");179 if ($result == FALSE) throw new Exception(pg_last_error($this->db));180 175 $result_contact = pg_query($this->db, "select id_contact, id_owner, id_status, photo, alias, id_prefix, given_names, family_names, names_ordered, id_suffix, birthdate, sex, pgp_key, notes, is_global, last_status, last_update, category, web_page, corporate_name, job_title, department from phpgw_cc_contact where id_contact = " . $id . ";"); 181 176 if ($result_contact == FALSE) throw new Exception(pg_last_error($this->db)); … … 363 358 } 364 359 } 365 $result = pg_query($this->db,"COMMIT;");366 if ($result == FALSE) throw new Exception(pg_last_error($this->db));367 360 } catch (Exception $e) { 368 pg_query($this->db,"ROLLBACK;");369 361 debugLog("exception -> " . $e->getMessage() . " - ARQUIVO: " . $e->getFile() . " - LINHA: " . $e->getLine()); 370 362 return;
Note: See TracChangeset
for help on using the changeset viewer.