From 9335232024a49f76bf3edb392823a6d174374aa1 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Mon, 25 Apr 2016 11:23:35 +0000 Subject: [PATCH] functions.inc.php: - fix db_quota_text() for postgresql (concat() vs. ||) https://sourceforge.net/p/postfixadmin/bugs/370/ git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1834 a1433add-5e2c-0410-b055-b7f2511e0802 --- functions.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions.inc.php b/functions.inc.php index 5dd7a389..7053696c 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -1345,8 +1345,8 @@ function db_get_boolean($bool) { * @return string */ function db_quota_text($count, $quota, $fieldname) { - if (db_sqlite()) { - // SQLite uses || to concatenate strings + if (db_pgsql() || db_sqlite()) { + // SQLite and PostgreSQL use || to concatenate strings return " CASE $quota WHEN '-1' THEN (coalesce($count,0) || ' / -') WHEN '0' THEN (coalesce($count,0) || ' / " . escape_string(html_entity_decode('∞')) . "')