|
5 | 5 | *Implements the basic DB functions used by the archiver.
|
6 | 6 | *
|
7 | 7 | * IDENTIFICATION
|
8 |
| - * $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_db.c,v 1.59 2004/10/01 17:25:55 tgl Exp $ |
| 8 | + * $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_db.c,v 1.60 2004/10/16 03:10:15 momjian Exp $ |
9 | 9 | *
|
10 | 10 | *-------------------------------------------------------------------------
|
11 | 11 | */
|
@@ -168,7 +168,7 @@ _connectDB(ArchiveHandle *AH, const char *reqdb, const char *requser)
|
168 | 168 | if (PQstatus(newConn)==CONNECTION_BAD)
|
169 | 169 | {
|
170 | 170 | noPwd= (strcmp(PQerrorMessage(newConn),
|
171 |
| -"fe_sendauth: no password supplied\n")==0); |
| 171 | +PQnoPasswordSupplied)==0); |
172 | 172 | badPwd= (strncmp(PQerrorMessage(newConn),
|
173 | 173 | "Password authentication failed for user",39)==0);
|
174 | 174 |
|
@@ -249,7 +249,7 @@ ConnectDatabase(Archive *AHX,
|
249 | 249 | die_horribly(AH,modulename,"failed to connect to database\n");
|
250 | 250 |
|
251 | 251 | if (PQstatus(AH->connection)==CONNECTION_BAD&&
|
252 |
| -strcmp(PQerrorMessage(AH->connection),"fe_sendauth: no password supplied\n")==0&& |
| 252 | +strcmp(PQerrorMessage(AH->connection),PQnoPasswordSupplied)==0&& |
253 | 253 | !feof(stdin))
|
254 | 254 | {
|
255 | 255 | PQfinish(AH->connection);
|
|