mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 08:23:12 +01:00
fixing wiki rate code / mixed case column names for PostgreSQL
This commit is contained in:
parent
c09d09a8c1
commit
ea079a6803
@ -1385,7 +1385,8 @@ class egw_db
|
||||
|
||||
// if name contains special characters, quote it
|
||||
// always quote for postgreSQL, as this is the only way to support mixed case names
|
||||
if ( preg_match('/\W/', $name) || $this->Type == 'ppsql') {
|
||||
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