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