Ignore:
Timestamp:
2013/08/02 13:22:57 (11 years ago)
Author:
Seasoft
Message:

#2322 (セッションのGC処理がエラーとなる)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/module/MDB2/Driver/Reverse/Common.php

    r20764 r23022  
    4343// +----------------------------------------------------------------------+ 
    4444// 
    45 // $Id: Common.php,v 1.43 2009/01/14 15:01:21 quipo Exp $ 
     45// $Id: Common.php 327310 2012-08-27 15:16:18Z danielc $ 
    4646// 
    4747 
     
    108108    function getTableFieldDefinition($table, $field) 
    109109    { 
    110         $db =& $this->getDBInstance(); 
    111         if (PEAR::isError($db)) { 
     110        $db = $this->getDBInstance(); 
     111        if (MDB2::isError($db)) { 
    112112            return $db; 
    113113        } 
     
    142142    function getTableIndexDefinition($table, $index) 
    143143    { 
    144         $db =& $this->getDBInstance(); 
    145         if (PEAR::isError($db)) { 
     144        $db = $this->getDBInstance(); 
     145        if (MDB2::isError($db)) { 
    146146            return $db; 
    147147        } 
     
    194194    function getTableConstraintDefinition($table, $index) 
    195195    { 
    196         $db =& $this->getDBInstance(); 
    197         if (PEAR::isError($db)) { 
     196        $db = $this->getDBInstance(); 
     197        if (MDB2::isError($db)) { 
    198198            return $db; 
    199199        } 
     
    221221    function getSequenceDefinition($sequence) 
    222222    { 
    223         $db =& $this->getDBInstance(); 
    224         if (PEAR::isError($db)) { 
     223        $db = $this->getDBInstance(); 
     224        if (MDB2::isError($db)) { 
    225225            return $db; 
    226226        } 
    227227 
    228228        $start = $db->currId($sequence); 
    229         if (PEAR::isError($start)) { 
     229        if (MDB2::isError($start)) { 
    230230            return $start; 
    231231        } 
     
    274274    function getTriggerDefinition($trigger) 
    275275    { 
    276         $db =& $this->getDBInstance(); 
    277         if (PEAR::isError($db)) { 
     276        $db = $this->getDBInstance(); 
     277        if (MDB2::isError($db)) { 
    278278            return $db; 
    279279        } 
     
    408408    function tableInfo($result, $mode = null) 
    409409    { 
    410         $db =& $this->getDBInstance(); 
    411         if (PEAR::isError($db)) { 
     410        $db = $this->getDBInstance(); 
     411        if (MDB2::isError($db)) { 
    412412            return $db; 
    413413        } 
     
    420420        $db->loadModule('Manager', null, true); 
    421421        $fields = $db->manager->listTableFields($result); 
    422         if (PEAR::isError($fields)) { 
     422        if (MDB2::isError($fields)) { 
    423423            return $fields; 
    424424        } 
     
    430430 
    431431        $indexes = $db->manager->listTableIndexes($result); 
    432         if (PEAR::isError($indexes)) { 
     432        if (MDB2::isError($indexes)) { 
    433433            $db->setOption('idxname_format', $idxname_format); 
    434434            return $indexes; 
     
    437437        foreach ($indexes as $index) { 
    438438            $definition = $this->getTableIndexDefinition($result, $index); 
    439             if (PEAR::isError($definition)) { 
     439            if (MDB2::isError($definition)) { 
    440440                $db->setOption('idxname_format', $idxname_format); 
    441441                return $definition; 
     
    449449 
    450450        $constraints = $db->manager->listTableConstraints($result); 
    451         if (PEAR::isError($constraints)) { 
     451        if (MDB2::isError($constraints)) { 
    452452            return $constraints; 
    453453        } 
     
    455455        foreach ($constraints as $constraint) { 
    456456            $definition = $this->getTableConstraintDefinition($result, $constraint); 
    457             if (PEAR::isError($definition)) { 
     457            if (MDB2::isError($definition)) { 
    458458                $db->setOption('idxname_format', $idxname_format); 
    459459                return $definition; 
     
    479479        foreach ($fields as $i => $field) { 
    480480            $definition = $this->getTableFieldDefinition($result, $field); 
    481             if (PEAR::isError($definition)) { 
     481            if (MDB2::isError($definition)) { 
    482482                $db->setOption('idxname_format', $idxname_format); 
    483483                return $definition; 
Note: See TracChangeset for help on using the changeset viewer.