Changeset 15920


Ignore:
Timestamp:
2007/09/24 08:44:07 (16 years ago)
Author:
kakinaka
Message:

mdb2テスト

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/data/class/SC_DbConn.php

    r15919 r15920  
    1111 
    1212$objDbConn = ""; 
     13$objDbConnMDB2 = ""; 
    1314 
    1415class SC_DbConn{ 
    1516 
    1617    var $conn; 
     18    var $conn_mdb2; 
    1719    var $result;  
    1820    var $includePath; 
     
    3638                if(defined('DEFAULT_DSN')) { 
    3739                    $objDbConn = DB::connect(DEFAULT_DSN, $options); 
     40                    $objDbConnMDB2 =& MDB2::factory($dsn);  
    3841                    $this->dsn = DEFAULT_DSN; 
    3942                } else { 
     
    4346        } 
    4447        $this->conn = $objDbConn; 
     48        $this->conn_mdb2 = $objDbConnMDB2; 
    4549        $this->error_mail_to = DB_ERROR_MAIL_TO; 
    4650        $this->error_mail_title = DB_ERROR_MAIL_SUBJECT; 
     
    116120 
    117121        if ( $arr ){ 
    118             $result = $this->conn->getAll($n, $arr, DB_FETCHMODE_ASSOC); 
    119         } else { 
    120             $result = $this->conn->getAll($n, DB_FETCHMODE_ASSOC); 
     122            //$result = $this->conn->getAll($n, $arr, DB_FETCHMODE_ASSOC); 
     123            $result = $this->conn_mdb2->queryAll($n, $arr, DB_FETCHMODE_ASSOC); 
     124        } else { 
     125            //$result = $this->conn->getAll($n, DB_FETCHMODE_ASSOC); 
     126            $result = $this->conn_mdb2->queryAll($n, DB_FETCHMODE_ASSOC); 
    121127        } 
    122128         
Note: See TracChangeset for help on using the changeset viewer.