fix bug regarding the rate (view/edit/search)Limit for mysql -> not set active as this fix breaks postgres; see lines 954 to 959 in wiki_so. Problem is caused by postgres behavior of recognizing columnnames, ... still to investigate

r38303: always quote for postgreSQL, as this is the only way to support mixed case names
r38307: fixing wiki rate code / mixed case column names for PostgreSQL
This commit is contained in:
Ralf Becker 2012-03-08 06:24:33 +00:00
parent e484a9e7b7
commit f1360eed13

View File

@ -1341,7 +1341,9 @@ 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 == 'pgsql' && preg_match('/[A-Z]+/', $name))
{
return $quote . $name . $quote;
}