Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf6a756e

Browse files
committed
Make PQhost return socket path.
1 parent6f11e6d commitf6a756e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/interfaces/libpq/fe-connect.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.148 2000/11/17 04:22:52 ishii Exp $
11+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.149 2000/11/27 21:12:25 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -2616,7 +2616,7 @@ PQhost(const PGconn *conn)
26162616
{
26172617
if (!conn)
26182618
return (char*)NULL;
2619-
returnconn->pghost;
2619+
returnconn->pghost ?conn->pghost :conn->pgunixsocket;
26202620
}
26212621

26222622
char*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp