Do not depend on the lack of a server for connecting: Postgres has a valid and common...
authorGreg Sabino Mullane <greg@users.mediawiki.org>
Mon, 21 Mar 2011 21:20:11 +0000 (21:20 +0000)
committerGreg Sabino Mullane <greg@users.mediawiki.org>
Mon, 21 Mar 2011 21:20:11 +0000 (21:20 +0000)
commit02c39cd896b41228b2f30067c3cfbef9c80883d3
tree1b10b8b003a5e6b2f0e18a8e7be45701b59b0efe
parentb848921890f806eccd8f590ecbcb9ba430e06fd7
Do not depend on the lack of a server for connecting: Postgres has a valid and common use case where the server name (aka host) is empty, as the connection is via a Unix socket. Instead, check if a $user has been sent to the function, as all databases can agree that we need at least that much before doing an open. Fixes bug 28167.
includes/db/Database.php