aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db/postgres.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2005-11-28 18:38:49 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2005-11-28 18:38:49 +0000
commit6d101df7dc3dc6f5542ccb11d626dcacbd148de6 (patch)
treef55c85d2de9f11e9517b7f54fe3d0e2548af41e8 /phpBB/includes/db/postgres.php
parent0dc59b9e0d1bd7d10fa3dddae3541f2dba01f4ef (diff)
downloadforums-6d101df7dc3dc6f5542ccb11d626dcacbd148de6.tar
forums-6d101df7dc3dc6f5542ccb11d626dcacbd148de6.tar.gz
forums-6d101df7dc3dc6f5542ccb11d626dcacbd148de6.tar.bz2
forums-6d101df7dc3dc6f5542ccb11d626dcacbd148de6.tar.xz
forums-6d101df7dc3dc6f5542ccb11d626dcacbd148de6.zip
- some SQL:2003 changes (basicly joins, mysql5 is sql:2003 compliant in strict mode now) - postgresql not supporting this standard. :/
- acp changes git-svn-id: file:///svn/phpbb/trunk@5313 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/db/postgres.php')
-rw-r--r--phpBB/includes/db/postgres.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/includes/db/postgres.php b/phpBB/includes/db/postgres.php
index 72590d6330..f371202578 100644
--- a/phpBB/includes/db/postgres.php
+++ b/phpBB/includes/db/postgres.php
@@ -120,6 +120,11 @@ class dbal_postgres extends dbal
{
global $cache;
+ if (strpos($query, 'SELECT') === 0 && strpos($query, 'FROM (') !== false)
+ {
+ $query = preg_replace('#FROM \((.+)\) #', 'FROM \1 ', $query);
+ }
+
// EXPLAIN only in extra debug mode
if (defined('DEBUG_EXTRA'))
{