Try to fix the group_concat function for pgsql.

This commit is contained in:
Laurent Destailleur 2016-06-25 02:30:12 +02:00
parent 9ebf7a1e35
commit 4856010400

View File

@ -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