Changeset 6352 for temp/trunk/data


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

* empty log message *

Location:
temp/trunk/data
Files:
2 edited

Legend:

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

    r6270 r6352  
    3333                $this->dsn = $dsn; 
    3434            } else { 
    35                 $objDbConn = DB::connect(DEFAULT_DSN, $options); 
    36                 $this->dsn = DEFAULT_DSN; 
     35                if(defined('DEFAULT_DSN')) { 
     36                    $objDbConn = DB::connect(DEFAULT_DSN, $options); 
     37                    $this->dsn = DEFAULT_DSN; 
     38                } else { 
     39                    return; 
     40                } 
    3741            } 
    3842        } 
  • temp/trunk/data/lib/slib.php

    r6339 r6352  
    2020 
    2121/* ¥Ç¡¼¥¿¥Ù¡¼¥¹¤Î¥Ð¡¼¥¸¥ç¥ó½êÆÀ */ 
    22 function sfGetDBVersion($dsn = DEFAULT_DSN) { 
     22function sfGetDBVersion($dsn = "") { 
     23    if($dsn == "") { 
     24        if(defined('DEFAULT_DSN')) { 
     25            $dsn = DEFAULT_DSN; 
     26        } else { 
     27            return; 
     28        } 
     29    } 
     30     
    2331    $objQuery = new SC_Query($dsn, true, true); 
    2432    list($db_type) = split(":", $dsn); 
     
    3644 
    3745/* ¥Æ¡¼¥Ö¥ë¤Î¸ºß¥Á¥§¥Ã¥¯ */ 
    38 function sfTabaleExists($table_name, $dsn = DEFAULT_DSN) { 
     46function sfTabaleExists($table_name, $dsn = "") { 
     47    if($dsn == "") { 
     48        if(defined('DEFAULT_DSN')) { 
     49            $dsn = DEFAULT_DSN; 
     50        } else { 
     51            return; 
     52        } 
     53    } 
     54     
    3955    $objQuery = new SC_Query($dsn, true, true); 
    4056    // Àµ¾ï¤ËÀܳ¤µ¤ì¤Æ¤¤¤ë¾ì¹ç 
Note: See TracChangeset for help on using the changeset viewer.