From e1de0d6fafb4e22e90f9277b9f60baa8943e1228 Mon Sep 17 00:00:00 2001 From: nikrou Date: Wed, 3 Feb 2010 09:26:32 +0000 Subject: Feature 511 : fix problems with calendar functions add pwg_db_concat() function git-svn-id: http://piwigo.org/svn/trunk@4833 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/dblayer/functions_pgsql.inc.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/dblayer/functions_pgsql.inc.php') 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, ','); -- cgit v1.2.3