We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f11e6d commit f6a756eCopy full SHA for f6a756e
src/interfaces/libpq/fe-connect.c
@@ -8,7 +8,7 @@
8
*
9
10
* IDENTIFICATION
11
- * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.148 2000/11/17 04:22:52 ishii Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.149 2000/11/27 21:12:25 momjian Exp $
12
13
*-------------------------------------------------------------------------
14
*/
@@ -2616,7 +2616,7 @@ PQhost(const PGconn *conn)
2616
{
2617
if (!conn)
2618
return (char *) NULL;
2619
- return conn->pghost;
+ return conn->pghost ? conn->pghost : conn->pgunixsocket;
2620
}
2621
2622
char *
0 commit comments