Changeset 1088

Show
Ignore:
Timestamp:
09/12/08 14:31:12 (4 months ago)
Author:
analogue
Message:

Ticket #674: Support for single transaction in PostgreSQL

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0.x/lib/jelix/CREDITS

    r1066 r1088  
    130130 
    131131Laurent Raufaste (aka analogue) 
    132  - patches on postgresql driver (#123, #671, #672
     132 - patches on postgresql driver (#123, #671, #672, #674
    133133 
    134134Rahal 
  • branches/1.0.x/lib/jelix/plugins/db/pgsql/pgsql.dbconnection.php

    r1066 r1088  
    3030        } 
    3131        parent::__construct($profil); 
     32        if(isset($this->profil['single_transaction']) && ($this->profil['single_transaction'])){ 
     33            $this->beginTransaction(); 
     34        } 
     35    } 
     36 
     37    function __destruct(){ 
     38        if(isset($this->profil['single_transaction']) && ($this->profil['single_transaction'])){ 
     39            $this->commit(); 
     40        } 
     41        parent::__destruct(); 
    3242    } 
    3343 
Download in other formats: Unified Diff Zip Archive