Changeset 224 for branches/dev/data


Ignore:
Timestamp:
2007/02/09 19:39:56 (19 years ago)
Author:
kakinaka
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/data/class/SC_CustomerList.php

    r223 r224  
    9090        //¡¡Ì¾Á°¡Ê¥«¥Ê¡Ë 
    9191        if ( strlen($this->arrSql['kana']) > 0 ) { 
    92             $this->setWhere("(kana01 || kana02 LIKE ?)"); 
     92            if(DB_TYPE == "pgsql"){ 
     93                $this->setWhere("(kana01 || kana02 LIKE ?)"); 
     94            }elseif(DB_TYPE == "mysql"){ 
     95                $this->setWhere("concat(kana01,kana02) LIKE ?" ); 
     96            } 
    9397            $searchKana = $this->addSearchStr($this->arrSql['kana']); 
    9498            $this->arrVal[] = mb_ereg_replace("[ ¡¡]+","",$searchKana); 
     
    103107        //¡¡ÅÅÏÃÈÖ¹æ 
    104108        if ( is_numeric( $this->arrSql['tel'] ) ) { 
    105             $this->setWhere( "(tel01 || tel02 || tel03 LIKE ?)" ); 
     109            if(DB_TYPE == "pgsql"){ 
     110                $this->setWhere( "(tel01 || tel02 || tel03 LIKE ?)" ); 
     111            }elseif(DB_TYPE == "mysql"){ 
     112                $this->setWhere("concat(tel01,tel02,tel03) LIKE ?" ); 
     113            } 
    106114            $searchTel = $this->addSearchStr($this->arrSql['tel']); 
    107115            $this->arrVal[] = ereg_replace("-", "", $searchTel); 
Note: See TracChangeset for help on using the changeset viewer.