Try to fix the group_concat function for pgsql.
This commit is contained in:
parent
9ebf7a1e35
commit
4856010400
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user