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