From 48560104006a914f4bb491d6dc7a8012523d63b8 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 25 Jun 2016 02:30:12 +0200 Subject: [PATCH] Try to fix the group_concat function for pgsql. --- htdocs/core/db/pgsql.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/db/pgsql.class.php b/htdocs/core/db/pgsql.class.php index ca35fca5b32..4e14c6987c0 100644 --- a/htdocs/core/db/pgsql.class.php +++ b/htdocs/core/db/pgsql.class.php @@ -316,7 +316,7 @@ class DoliDBPgsql extends DoliDB } // Replace group_concat(x) with string_agg(x, ',') - $line=preg_replace('/group_concat\(([^\)]+)\)/','string_agg(\\1, \',\')',$line); + $line=preg_replace('/GROUP_CONCAT\(([^\)]+)\)/i','STRING_AGG(\\1, \',\')',$line); //print $line."\n"; // Remove () in the tables in FROM if 1 table