Ignore:
Timestamp:
2007/02/14 12:50:06 (19 years ago)
Author:
kakinaka
Message:
 
File:
1 edited

Legend:

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

    r15 r248  
    7878        // ̾Á° 
    7979        if ( strlen($this->arrSql['name']) > 0 ) { 
    80             $this->setWhere("(name01 || name02 LIKE ?)" ); 
     80            if(DB_TYPE == "pgsql"){ 
     81                $this->setWhere("(name01 || name02 LIKE ?)" ); 
     82            }elseif(DB_TYPE == "mysql"){ 
     83                $this->setWhere("concat(name01,name02) LIKE ?" ); 
     84            } 
     85 
    8186            $searchName = $this->addSearchStr($this->arrSql['name']); 
    8287            $this->arrVal[] = mb_ereg_replace("[ ¡¡]+","",$searchName); 
     
    8590        //¡¡Ì¾Á°¡Ê¥«¥Ê¡Ë 
    8691        if ( strlen($this->arrSql['kana']) > 0 ) { 
    87             $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            } 
    8897            $searchKana = $this->addSearchStr($this->arrSql['kana']); 
    8998            $this->arrVal[] = mb_ereg_replace("[ ¡¡]+","",$searchKana); 
     
    98107        //¡¡ÅÅÏÃÈÖ¹æ 
    99108        if ( is_numeric( $this->arrSql['tel'] ) ) { 
    100             $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            } 
    101114            $searchTel = $this->addSearchStr($this->arrSql['tel']); 
    102115            $this->arrVal[] = ereg_replace("-", "", $searchTel); 
Note: See TracChangeset for help on using the changeset viewer.