Merge pull request #1061 from GPCsolutions/group_concat

Added group_concat equivalent to PgSQL
This commit is contained in:
Laurent Destailleur 2013-06-19 09:34:38 -07:00
commit 5667fceba8

View File

@ -177,6 +177,10 @@ class DoliDBPgsql
}
if ($line != "")
{
// group_concat support (PgSQL >= 9.1)
$line = preg_replace('/GROUP_CONCAT/i', 'STRING_AGG', $line);
$line = preg_replace('/ SEPARATOR/i', ',', $line);
if ($type == 'auto')
{
if (preg_match('/ALTER TABLE/i',$line)) $type='dml';