mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-24 15:48:55 +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
08e40605cc
commit
dc62656385
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user