Ignore:
Timestamp:
2012/05/14 02:38:11 (9 years ago)
Author:
nanasess
bzr:base-revision:
nanasess@fsm.ne.jp-20120513161702-kk78khnxu1sfsw5s
bzr:committer:
Kentaro Ohkouchi <nanasess@fsm.ne.jp>
bzr:file-ids:

data/class/SC_Query.php 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2FSC_Query.php
data/class/SC_SelectSql.php 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2FSC_SelectSql.php
data/class/helper/SC_Helper_Customer.php 19864@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Fversion-2_5-dev%2Fdata%2Fclass%2Fhelper%2FSC_Helper_Customer.php
data/class/pages/admin/system/LC_Page_Admin_System.php 15585@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fadmin%2Fsystem%2FLC_Page_Admin_System.php
data/class/pages/products/LC_Page_Products_Detail.php 15154@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fproducts%2FLC_Page_Products_Detail.php
bzr:mapping-version:
v4
bzr:merge:

nanasess@fsm.ne.jp-20120513173417-27p8tawv1k1wnthe
bzr:repository-uuid:
1e3b908f-19a9-db11-a64c-001125224ba8
bzr:revision-id:
nanasess@fsm.ne.jp-20120513173804-r2alhhlv9wbg9pzn
bzr:revno:
4500
bzr:revprop:branch-nick:
branches/version-2_12-dev
bzr:root:
branches/version-2_12-dev
bzr:testament:

bazaar-ng testament short form 2.1
revision-id: nanasess@fsm.ne.jp-20120513173804-r2alhhlv9wbg9pzn
sha1: 30955b6741e635d275aa0244123a27bbdc87996f
bzr:timestamp:
2012-05-14 02:38:04.782999992 +0900
bzr:user-agent:
bzr2.4.2+bzr-svn1.1.2
Message:

#1752 (LIMIT, OFFSET をベタ書きしない)

  • SC_Query::setLimitOffset() は MDB2::setLimit() のラッパーに修正
  • SC_SelectSql::setLimitOffset() は SC_Query::setLimitOffset() を使用するよう修正
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/SC_Query.php

    r21830 r21832  
    348348     * 
    349349     * この関数で設定した値は SC_Query::getSql() で使用されます. 
    350      * TODO MDB2::setLimit() を使用する 
    351350     * 
    352351     * @param integer $limit LIMIT 句に付与する値 
     
    356355    function setLimitOffset($limit, $offset = 0) { 
    357356        if (is_numeric($limit) && is_numeric($offset)) { 
    358  
    359             $option = ' LIMIT ' . $limit; 
    360             $option.= ' OFFSET ' . $offset; 
    361             $this->option .= $option; 
     357            $this->conn->setLimit($limit, $offset); 
    362358        } 
    363359        return $this; 
     
    457453    function setLimit($limit) { 
    458454        if (is_numeric($limit)) { 
    459             $this->option = ' LIMIT ' .$limit; 
     455            $this->conn->setLimit($limit); 
    460456        } 
    461457        return $this; 
     
    467463     * この関数で設定した値は SC_Query::getSql() で使用されます. 
    468464     * 
    469      * @param integer $offset LIMIT 句に設定する値 
     465     * @param integer $offset OFFSET 句に設定する値 
    470466     * @return SC_Query 自分自身のインスタンス 
    471467     */ 
    472468    function setOffset($offset) { 
    473469        if (is_numeric($offset)) { 
    474             $this->offset = ' OFFSET ' .$offset; 
     470            $this->conn->setLimit($this->conn->limit, $offset); 
    475471        } 
    476472        return $this; 
Note: See TracChangeset for help on using the changeset viewer.