From 59ba11f18f9b43fc154018923c20dcc17db8ffa7 Mon Sep 17 00:00:00 2001 From: David M Date: Fri, 17 Mar 2006 05:30:44 +0000 Subject: [PATCH] - Postgre installs now work... kinda... git-svn-id: file:///svn/phpbb/trunk@5642 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/db/postgres.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/includes/db/postgres.php b/phpBB/includes/db/postgres.php index e9d324e161..8e680e9968 100644 --- a/phpBB/includes/db/postgres.php +++ b/phpBB/includes/db/postgres.php @@ -14,7 +14,7 @@ if (!defined('SQL_LAYER')) { - define('SQL_LAYER', 'postgresql'); + define('SQL_LAYER', 'postgres'); include($phpbb_root_path . 'includes/db/dbal.' . $phpEx); /** @@ -122,7 +122,7 @@ class dbal_postgres extends dbal if (strpos($query, 'SELECT') === 0 && strpos($query, 'FROM (') !== false) { - $query = preg_replace('#FROM \((.+)\) #', 'FROM \1 ', $query); + $query = preg_replace('#FROM \(([^)]+)\)\s#', 'FROM \1 ', $query); } // EXPLAIN only in extra debug mode