mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-16 05:54:44 +01:00
*** empty log message ***
git-svn-id: file:///svn/phpbb/trunk@6244 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
5541765c4a
commit
ed69b27cb6
@ -89,9 +89,18 @@ class dbal_postgres extends dbal
|
||||
*/
|
||||
function sql_server_info()
|
||||
{
|
||||
$version = @pg_version($this->db_connect_id);
|
||||
|
||||
return 'PostgreSQL' . ((!empty($version)) ? ' ' . $version['client'] : '');
|
||||
if (version_compare(phpversion(), '5.0.0', '>='))
|
||||
{
|
||||
$version = @pg_version($this->db_connect_id);
|
||||
return 'PostgreSQL' . ((!empty($version)) ? ' ' . $version['client'] : '');
|
||||
}
|
||||
else
|
||||
{
|
||||
$query_id = @pg_query($this->db_connect_id, 'select version()');
|
||||
$row = @pg_fetch_assoc($query_id, null);
|
||||
$version = $row['version'];
|
||||
return ((!empty($version)) ? ' ' . $version : '');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user