phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] property/inc/class.sogab.inc.php, 1.7.2.4


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

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

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

Log Message:
Using ilike if pgsql
=====================================================================
Index: property/inc/class.sogab.inc.php
diff -u property/inc/class.sogab.inc.php:1.7.2.3 
property/inc/class.sogab.inc.php:1.7.2.4
--- property/inc/class.sogab.inc.php:1.7.2.3    Thu Nov 18 22:12:08 2004
+++ property/inc/class.sogab.inc.php    Tue Dec  7 09:04:28 2004
@@ -39,9 +39,9 @@
                        $this->socommon         = 
CreateObject($this->currentapp.'.socommon');
 
                        $this->join                     = $this->socommon->join;
+                       $this->like                     = $this->socommon->like;
 
                        $this->gab_insert_level = $gab_insert_level;
-
                }
 
                function read($data)
@@ -98,22 +98,22 @@
 
                        if ($gaards_nr)
                        {
-                               $filtermethod .= " $where SUBSTRING(gab_id,5,5) 
like '%$gaards_nr%' ";
+                               $filtermethod .= " $where SUBSTRING(gab_id,5,5) 
$this->like '%$gaards_nr%' ";
                                $where = 'AND';
                        }
                        if ($bruksnr)
                        {
-                               $filtermethod .= " $where 
SUBSTRING(gab_id,10,4) like '%$bruksnr%' ";
+                               $filtermethod .= " $where 
SUBSTRING(gab_id,10,4) $this->like '%$bruksnr%' ";
                                $where = 'AND';
                        }
                        if ($feste_nr)
                        {
-                               $filtermethod .= " $where 
SUBSTRING(gab_id,14,4) like '%$feste_nr%' ";
+                               $filtermethod .= " $where 
SUBSTRING(gab_id,14,4) $this->like '%$feste_nr%' ";
                                $where = 'AND';
                        }
                        if ($seksjons_nr)
                        {
-                               $filtermethod .= " $where 
SUBSTRING(gab_id,18,3) like '%$seksjons_nr%' ";
+                               $filtermethod .= " $where 
SUBSTRING(gab_id,18,3) $this->like '%$seksjons_nr%' ";
                                $where = 'AND';
                        }
 




reply via email to

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