Changeset 4715 for temp/trunk/data/class


Ignore:
Timestamp:
2006/09/14 10:52:35 (20 years ago)
Author:
kakinaka
Message:

blank

File:
1 edited

Legend:

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

    r4714 r4715  
    6969     
    7070    function getRow($n, $arr = ""){ 
    71          
     71 
     72        // mysql¤Î¾ì¹ç¤Ë¤Ï¥Ó¥å¡¼É½¤òÊÑ´¹¤¹¤ë 
     73        if (DB_TYPE == "mysql") { 
     74            $n = sfChangeView($n); 
     75        } 
     76 
    7277        if ( $arr ) { 
    7378            $result = $this->conn->getRow($n, $arr); 
     
    8489    // SELECTʸ¤Î¼Â¹Ô·ë²Ì¤òÁ´¤Æ¼èÆÀ 
    8590    function getAll($n, $arr = ""){ 
     91 
     92        // mysql¤Î¾ì¹ç¤Ë¤Ï¥Ó¥å¡¼É½¤òÊÑ´¹¤¹¤ë 
     93        if (DB_TYPE == "mysql") { 
     94            $n = sfChangeView($n); 
     95        } 
     96         
    8697        if(PEAR::isError($this->conn)) { 
    8798            sfErrorHeader("DB¤Ø¤ÎÀܳ¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£:" . $this->dsn); 
    8899            return 0; 
    89100        } 
    90          
     101 
    91102        if ( $arr ){ 
    92103            $result = $this->conn->getAll($n, $arr, DB_FETCHMODE_ASSOC); 
Note: See TracChangeset for help on using the changeset viewer.