Ignore:
Timestamp:
2007/08/22 12:59:37 (17 years ago)
Author:
nanasess
Message:

SC_Query::select() で SC_DB_DBFactory::sfChangeMySQL() を呼ぶように修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/SC_Query.php

    r15080 r15338  
    4646    function select($col, $table, $where = "", $arrval = array()){ 
    4747        $sqlse = $this->getsql($col, $table, $where); 
     48        // DBに依存した SQL へ変換 
     49        $dbFactory = SC_DB_DBFactory::getInstance(); 
     50        $sqlse = $dbFactory->sfChangeMySQL($sqlse); 
    4851        $ret = $this->conn->getAll($sqlse, $arrval); 
    4952        return $ret; 
     
    125128    function setlimitoffset($limit, $offset = 0, $return = false) { 
    126129        if (is_numeric($limit) && is_numeric($offset)){ 
    127              
    128             $option.= " LIMIT " . $limit; 
     130 
     131            $option = " LIMIT " . $limit; 
    129132            $option.= " OFFSET " . $offset; 
    130133             
Note: See TracChangeset for help on using the changeset viewer.