Changeset 6266 for temp/trunk/data/class


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

* empty log message *

Location:
temp/trunk/data/class
Files:
2 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; 
Note: See TracChangeset for help on using the changeset viewer.