Ignore:
Timestamp:
2013/09/09 12:52:52 (11 years ago)
Author:
pineray
Message:

#2370 トランザクション処理の前にトランザクションの状態を確認する

MDB2のコードを良く読んだら、内部で同じような処理を行っているので、今回の変更を差し戻します。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/class/SC_Query.php

    r23195 r23198  
    201201    public function commit() 
    202202    { 
    203         if ($this->inTransaction()) { 
    204             return $this->conn->commit(); 
    205         } else { 
    206             return false; 
    207         } 
     203        return $this->conn->commit(); 
    208204    } 
    209205 
     
    216212    public function begin() 
    217213    { 
    218         if (!$this->inTransaction()) { 
    219             return $this->conn->beginTransaction(); 
    220         } else { 
    221             return false; 
    222         } 
     214        return $this->conn->beginTransaction(); 
    223215    } 
    224216 
     
    231223    public function rollback() 
    232224    { 
    233         if ($this->inTransaction()) { 
    234             return $this->conn->rollback(); 
    235         } else { 
    236             return false; 
    237         } 
     225        return $this->conn->rollback(); 
    238226    } 
    239227 
Note: See TracChangeset for help on using the changeset viewer.