mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-13 19:25:22 +01:00
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:
committed by
GitHub
parent
c7940446d4
commit
d5250eadeb
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user