mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 16:33:17 +01:00
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:
parent
e484a9e7b7
commit
f1360eed13
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user