Changeset 6352 for temp/trunk/data/lib


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

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.