FIX: pgsql: cast string_agg arguments (#34210)

* FIX local taxes text in object line view mode (#34103)

* FIX: product suplier tab: last modif date column was wrongly dependant of module barcode (#34170)

* FIX: product suplier tab: last modif date column was wrongly dependant of module barcode

* FIX: product suplier tab: last modif date column was wrongly dependant of module barcode, part 2

* FIX: pgsql: cast string_agg arguments

* FIX: pgsql group concat conversion: modify tests as a consequence

---------

Co-authored-by: lvessiller-opendsi <lvessiller@open-dsi.fr>
This commit is contained in:
Marc de Lima Lucio
2025-06-04 18:24:19 +02:00
committed by GitHub
parent c7940446d4
commit d5250eadeb
2 changed files with 3 additions and 2 deletions

View File

@@ -175,6 +175,7 @@ class DoliDBPgsql extends DoliDB
$line = preg_replace('/GROUP_CONCAT/i', 'STRING_AGG', $line);
$line = preg_replace('/ SEPARATOR/i', ',', $line);
$line = preg_replace('/STRING_AGG\(([^,\)]+)\)/i', 'STRING_AGG(\\1, \',\')', $line);
$line = preg_replace('/STRING_AGG\(([^,]+),([^\)]+)\)/i', 'STRING_AGG(\\1::TEXT,\\2::TEXT)', $line);
//print $line."\n";
if ($type == 'auto') {