patch #2932: allow PostgreSQL unix domain sockets

This commit is contained in:
Ralf Becker 2011-04-10 12:29:29 +00:00
parent 33192b2931
commit 52d70b90c1

View File

@ -1521,7 +1521,7 @@ class sqlfs_stream_wrapper implements iface_stream_wrapper
switch($type) switch($type)
{ {
default: default:
$dsn = self::$pdo_type.':host='.$egw_db->Host.';port='.$egw_db->Port.';dbname='.$egw_db->Database; $dsn = self::$pdo_type.':dbname='.$egw_db->Database.($egw_db->Host ? ';host='.$egw_db->Host.($egw_db->Port ? ';port='.$egw_db->Port : '') : '');
break; break;
} }
// check once if pdo extension and DB specific driver is loaded or can be loaded // check once if pdo extension and DB specific driver is loaded or can be loaded