Ignore:
Timestamp:
2008/09/06 23:21:00 (18 years ago)
Author:
Seasoft
Message:

getLastQuery()のロジックを SC_Query から SC_DbConn に移動し、両方で利用可能に。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/class/SC_DbConn.php

    r17576 r17595  
    259259        exit(); 
    260260    } 
     261 
     262    /** 
     263     * 直前に実行されたSQL文を取得する. 
     264     * 
     265     * @param boolean $disp trueの場合、画面出力を行う. 
     266     * @return string SQL文 
     267     */ 
     268    function getLastQuery($disp = true) { 
     269        $sql = $this->conn->last_query; 
     270        if($disp) { 
     271            print($sql.";<br />\n"); 
     272        } 
     273        return $sql; 
     274    } 
    261275} 
    262276 
Note: See TracChangeset for help on using the changeset viewer.