Changeset 23198
- Timestamp:
- 2013/09/09 12:52:52 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/data/class/SC_Query.php
r23195 r23198 201 201 public function commit() 202 202 { 203 if ($this->inTransaction()) { 204 return $this->conn->commit(); 205 } else { 206 return false; 207 } 203 return $this->conn->commit(); 208 204 } 209 205 … … 216 212 public function begin() 217 213 { 218 if (!$this->inTransaction()) { 219 return $this->conn->beginTransaction(); 220 } else { 221 return false; 222 } 214 return $this->conn->beginTransaction(); 223 215 } 224 216 … … 231 223 public function rollback() 232 224 { 233 if ($this->inTransaction()) { 234 return $this->conn->rollback(); 235 } else { 236 return false; 237 } 225 return $this->conn->rollback(); 238 226 } 239 227
Note: See TracChangeset
for help on using the changeset viewer.