Changeset 15920
- Timestamp:
- 2007/09/24 08:44:07 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/dev/data/class/SC_DbConn.php
r15919 r15920 11 11 12 12 $objDbConn = ""; 13 $objDbConnMDB2 = ""; 13 14 14 15 class SC_DbConn{ 15 16 16 17 var $conn; 18 var $conn_mdb2; 17 19 var $result; 18 20 var $includePath; … … 36 38 if(defined('DEFAULT_DSN')) { 37 39 $objDbConn = DB::connect(DEFAULT_DSN, $options); 40 $objDbConnMDB2 =& MDB2::factory($dsn); 38 41 $this->dsn = DEFAULT_DSN; 39 42 } else { … … 43 46 } 44 47 $this->conn = $objDbConn; 48 $this->conn_mdb2 = $objDbConnMDB2; 45 49 $this->error_mail_to = DB_ERROR_MAIL_TO; 46 50 $this->error_mail_title = DB_ERROR_MAIL_SUBJECT; … … 116 120 117 121 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); 121 127 } 122 128
Note: See TracChangeset
for help on using the changeset viewer.