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 ca48d54 commit b3ee005Copy full SHA for b3ee005
src/interfaces/libpq/fe-connect.c
@@ -2330,7 +2330,14 @@ PQconnectPoll(PGconn *conn)
2330
}
2331
2332
else
2333
+ {
2334
+ /*
2335
+ * Set current address to the last address as it
2336
+ * may be used later
2337
+ */
2338
+ conn->whichaddr = conn->nconnaddr - 1;
2339
break; /* Stop trying */
2340
+ }
2341
2342
2343
/*
0 commit comments