Merge pull request #1061 from GPCsolutions/group_concat
Added group_concat equivalent to PgSQL
This commit is contained in:
commit
5667fceba8
@ -177,6 +177,10 @@ class DoliDBPgsql
|
|||||||
}
|
}
|
||||||
if ($line != "")
|
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 ($type == 'auto')
|
||||||
{
|
{
|
||||||
if (preg_match('/ALTER TABLE/i',$line)) $type='dml';
|
if (preg_match('/ALTER TABLE/i',$line)) $type='dml';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user