function commit() { $result = $this->conn->commit(); if(DB::isError($result)) { throw new Exception($result->getMessage(), $result->getCode()); } $this->conn->autoCommit(true); return true; } function abort(){ $result = $this->conn->rollback(); if(DB::isError($result)) { throw new Exception($result->getMessage(), $result->getCode()); } return true; }
kubik1988elk