Changeset 6266


Ignore:
Timestamp:
2006/10/13 13:22:44 (20 years ago)
Author:
naka
Message:

* empty log message *

Location:
temp/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/data/class/SC_DbConn.php

    r6262 r6266  
    2222     
    2323    // ¥³¥ó¥¹¥È¥é¥¯¥¿ 
    24     function SC_DbConn($dsn = "", $err_disp = true){ 
     24    function SC_DbConn($dsn = "", $err_disp = true, $new = false){ 
    2525        global $objDbConn; 
    2626         
    2727        // Debug¥â¡¼¥É»ØÄê 
    2828        $options['debug'] = PEAR_DB_DEBUG; 
    29         // ´û¤ËÀܳ¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤ÏÀܳ¤·¤Ê¤¤ 
    30         if(!isset($objDbConn->connection)) { 
     29        // ´û¤ËÀܳ¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤ÈºÆÀܳ¤Ê¤·¤Î¾ì¹ç¤ÏÀܳ¤·¤Ê¤¤ 
     30        if(!isset($objDbConn->connection) && !$new) { 
    3131            if($dsn != "") { 
    3232                $objDbConn = DB::connect($dsn, $options); 
  • temp/trunk/data/class/SC_Query.php

    r6217 r6266  
    1212     
    1313    // ¥³¥ó¥¹¥È¥é¥¯¥¿ 
    14     function SC_Query($dsn = "", $err_disp = true) { 
    15         $this->conn = new SC_DBconn($dsn, $err_disp); 
     14    /* 
     15        $err_disp:¥¨¥é¡¼É½¼¨¤ò¹Ô¤¦¤« 
     16        $new¡§ºÆÀܳ¤ò¹Ô¤¦¤« 
     17     */ 
     18    function SC_Query($dsn = "", $err_disp = true, $new = false) { 
     19        $this->conn = new SC_DBconn($dsn, $err_disp, $new); 
    1620        $this->where = ""; 
    1721        return $this->conn; 
  • temp/trunk/data/lib/slib.php

    r6265 r6266  
    2626    list($db_type) = split(":", $dsn); 
    2727    if($db_type == 'mysql') { 
    28         $arrRet = $objQuery->getAll("SHOW VARIABLES"); 
     28        $arrRet = $objQuery->getAll("select version()"); 
    2929         
    3030        sfPrintR($arrRet); 
  • temp/trunk/html/install/index.php

    r6262 r6266  
    8383    $arrRet =  $objDBParam->getHashArray(); 
    8484    $dsn = $arrRet['db_type']."://".$arrRet['db_user'].":".$arrRet['db_password']."@".$arrRet['db_server'].":".$arrRet['db_port']."/".$arrRet['db_name']; 
    85      
    86     global $objDbConn; 
    87     unset($objDbConn); 
    88      
    8985    /* 
    9086        ¥Ð¡¼¥¸¥ç¥ó¥¢¥Ã¥×Åù¤ÇÄɲåơ¼¥Ö¥ë¤¬È¯À¸¤·¤¿ºÝ¤Ïµ­ºÜ¤¹¤ë 
Note: See TracChangeset for help on using the changeset viewer.