phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] property/inc/class.sop_of_town.inc.php, 1.2.2.4


From: nomail
Subject: [Phpgroupware-cvs] property/inc/class.sop_of_town.inc.php, 1.2.2.4
Date: Tue, 7 Dec 2004 10:04:28 +0100

Update of /property/inc
Modified Files:
        Branch: proposed-0_9_18-branch
          class.sop_of_town.inc.php

date: 2004/12/07 09:04:28;  author: sigurdne;  state: Exp;  lines: +3 -2

Log Message:
Using ilike if pgsql
=====================================================================
Index: property/inc/class.sop_of_town.inc.php
diff -u property/inc/class.sop_of_town.inc.php:1.2.2.3 
property/inc/class.sop_of_town.inc.php:1.2.2.4
--- property/inc/class.sop_of_town.inc.php:1.2.2.3      Thu Nov 18 22:12:08 2004
+++ property/inc/class.sop_of_town.inc.php      Tue Dec  7 09:04:28 2004
@@ -37,6 +37,7 @@
                        $this->socommon         = 
CreateObject($this->currentapp.'.socommon');
 
                        $this->join                     = $this->socommon->join;
+                       $this->like                     = $this->socommon->like;
                }
 
 
@@ -83,7 +84,7 @@
                                $query = ereg_replace("'",'',$query);
                                $query = ereg_replace('"','',$query);
 
-                               $querymethod = " $where ( name LIKE 
'%$query%')";
+                               $querymethod = " $where ( name $this->like 
'%$query%')";
                        }
 
                        $sql = "SELECT fm_part_of_town.*, descr as category 
FROM fm_part_of_town $this->join fm_district on 
fm_part_of_town.district_id=fm_district.id $filtermethod $querymethod";




reply via email to

[Prev in Thread] Current Thread [Next in Thread]