Changeset 5872 for temp/trunk/data/class/SC_Query.php
- Timestamp:
- 2006/09/26 12:56:28 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/data/class/SC_Query.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/data/class/SC_Query.php
r5858 r5872 39 39 40 40 function commit() { 41 $this->conn->query("SET AUTOCOMMIT=1;"); 41 42 $this->conn->query("COMMIT"); 42 43 } 43 44 44 45 function begin() { 45 $this->conn->query("BEGIN"); 46 // $this->conn->query("BEGIN"); 47 $this->conn->query("SET AUTOCOMMIT=0;"); 48 $this->conn->query("START TRANSACTION;"); 46 49 } 47 50 48 51 function rollback() { 52 $this->conn->query("SET AUTOCOMMIT=1;"); 49 53 $this->conn->query("ROLLBACK"); 50 54 }
Note: See TracChangeset
for help on using the changeset viewer.
