From 4b9b76bbe76c1e04bbdf838121ac15809ce22626 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 26 May 2010 15:41:40 +0000 Subject: [PATCH] fix for bug #2624: SQL error - CONCAT not supported by postgres --- infolog/inc/class.infolog_so.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infolog/inc/class.infolog_so.inc.php b/infolog/inc/class.infolog_so.inc.php index 69ac00156e..7393af4f11 100644 --- a/infolog/inc/class.infolog_so.inc.php +++ b/infolog/inc/class.infolog_so.inc.php @@ -768,7 +768,7 @@ class infolog_so // Multi-select - any entry with the filter value selected matches $filtermethod .= $this->db->expression($this->extra_table, array( 'info_extra_name' => substr($col,1), - "CONCAT(',',info_extra_value,',') LIKE '%,$data,%'" + $this->db->concat("','",'info_extra_value',"','").' '.$this->db->capabilities[egw_db::CAPABILITY_CASE_INSENSITIV_LIKE].' '.$this->db->quote('%,'.$data.',%'), )).')'; } else