diff options
Diffstat (limited to '')
-rw-r--r-- | include/dblayer/functions_pgsql.inc.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/dblayer/functions_pgsql.inc.php b/include/dblayer/functions_pgsql.inc.php index 8a300b7ad..3c68f7816 100644 --- a/include/dblayer/functions_pgsql.inc.php +++ b/include/dblayer/functions_pgsql.inc.php @@ -449,14 +449,12 @@ WHERE tablename like \''.$prefixeTable.'%\''; function pwg_db_concat($array) { - $string = implode($array, ','); - return 'ARRAY_TO_STRING(ARRAY['.$string.'])'; + return implode($array, ' || '); } function pwg_db_concat_ws($array, $separator) { - $string = implode($array, ','); - return 'ARRAY_TO_STRING(ARRAY['.$string.'],\''.$separator.'\')'; + return implode($array, ' || \''.$separator.'\' || '); } function pwg_db_cast_to_text($string) |