aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/test/expected/connect-test1.c
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2017-11-11 14:33:02 -0800
committerNoah Misch <noah@leadboat.com>2017-11-11 14:33:02 -0800
commit34baf8a00b018caf7269134cf9b461266e66d9a7 (patch)
treeee747bca95f947f1381f9c771af8e379b2da4de5 /src/interfaces/ecpg/test/expected/connect-test1.c
parent4b865aee2582292a42a8e58247a41b46f5aa8a82 (diff)
downloadpostgresql-34baf8a00b018caf7269134cf9b461266e66d9a7.tar.gz
postgresql-34baf8a00b018caf7269134cf9b461266e66d9a7.zip
Make connect/test1 independent of localhost IPv6.
Since commit 868898739a8da9ab74c105b8349b7b5c711f265a, it has assumed "localhost" resolves to both ::1 and 127.0.0.1. We gain nothing from that assumption, and it does not hold in a default installation of Red Hat Enterprise Linux 5. Back-patch to 9.3 (all supported versions).
Diffstat (limited to 'src/interfaces/ecpg/test/expected/connect-test1.c')
-rw-r--r--src/interfaces/ecpg/test/expected/connect-test1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/test/expected/connect-test1.c b/src/interfaces/ecpg/test/expected/connect-test1.c
index 18e5968d3ac..98b7e717c72 100644
--- a/src/interfaces/ecpg/test/expected/connect-test1.c
+++ b/src/interfaces/ecpg/test/expected/connect-test1.c
@@ -109,7 +109,7 @@ main(void)
/* wrong port */
- { ECPGconnect(__LINE__, 0, "tcp:postgresql://localhost:20/ecpg2_regression" , "regress_ecpg_user1" , "connectpw" , NULL, 0); }
+ { ECPGconnect(__LINE__, 0, "tcp:postgresql://127.0.0.1:20/ecpg2_regression" , "regress_ecpg_user1" , "connectpw" , NULL, 0); }
#line 57 "test1.pgc"
/* no disconnect necessary */