From ebe229e885fb0268019bae74f18da71816dd169a Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 7 Mar 2012 21:33:59 +0000 Subject: [PATCH] always quote for postgreSQL, as this is the only way to support mixed case names --- phpgwapi/inc/class.egw_db.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.egw_db.inc.php b/phpgwapi/inc/class.egw_db.inc.php index 8fea7e2f00..df16cbe962 100644 --- a/phpgwapi/inc/class.egw_db.inc.php +++ b/phpgwapi/inc/class.egw_db.inc.php @@ -1384,7 +1384,8 @@ class egw_db } // if name contains special characters, quote it - if ( preg_match('/\W/', $name) ) { + // always quote for postgreSQL, as this is the only way to support mixed case names + if ( preg_match('/\W/', $name) || $this->Type == 'ppsql') { return $quote . $name . $quote; }