mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 13:58:54 +00:00
[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
This commit is contained in:
parent
fc5be6928f
commit
a4100fe709
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue