aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db/postgres.php
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2011-02-23 22:54:25 -0500
committerOleg Pudeyev <oleg@bsdpower.com>2011-03-06 20:16:17 -0500
commita4100fe7094aaa5377065d2f25ca8d0fa2ff6bf8 (patch)
tree86b6ddfddb20f32d2005181245ab2a894ce57170 /phpBB/includes/db/postgres.php
parentfc5be6928fc2af13333569e766a289e5e3334233 (diff)
downloadforums-a4100fe7094aaa5377065d2f25ca8d0fa2ff6bf8.tar
forums-a4100fe7094aaa5377065d2f25ca8d0fa2ff6bf8.tar.gz
forums-a4100fe7094aaa5377065d2f25ca8d0fa2ff6bf8.tar.bz2
forums-a4100fe7094aaa5377065d2f25ca8d0fa2ff6bf8.tar.xz
forums-a4100fe7094aaa5377065d2f25ca8d0fa2ff6bf8.zip
[ticket/10057] More informative error messages in postgres dbal.
When pg_connect/pg_pconnect do not exist, mention that they come with pgsql extension. PHPBB3-10057
Diffstat (limited to 'phpBB/includes/db/postgres.php')
-rw-r--r--phpBB/includes/db/postgres.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/db/postgres.php b/phpBB/includes/db/postgres.php
index 29e15143bc..c1dc7f7e2b 100644
--- a/phpBB/includes/db/postgres.php
+++ b/phpBB/includes/db/postgres.php
@@ -83,7 +83,7 @@ class dbal_postgres extends dbal
{
if (!function_exists('pg_pconnect'))
{
- return $this->sql_error('pg_pconnect does not exist');
+ return $this->sql_error('pg_pconnect function does not exist, is pgsql extension installed?');
}
phpbb_start_error_collection();
$this->db_connect_id = (!$new_link) ? @pg_pconnect($connect_string) : @pg_pconnect($connect_string, PGSQL_CONNECT_FORCE_NEW);
@@ -92,7 +92,7 @@ class dbal_postgres extends dbal
{
if (!function_exists('pg_pconnect'))
{
- return $this->sql_error('pg_connect does not exist');
+ return $this->sql_error('pg_connect function does not exist, is pgsql extension installed?');
}
phpbb_start_error_collection();
$this->db_connect_id = (!$new_link) ? @pg_connect($connect_string) : @pg_connect($connect_string, PGSQL_CONNECT_FORCE_NEW);