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:23:07 +00:00
parent 08e40605cc
commit dc62656385

View File

@ -1384,7 +1384,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;
}