|
7 | 7 | * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group |
8 | 8 | * Portions Copyright (c) 1994, Regents of the University of California |
9 | 9 | * |
10 | | - * $PostgreSQL: pgsql/src/bin/scripts/common.c,v 1.33 2009/01/01 17:23:55 momjian Exp $ |
| 10 | + * $PostgreSQL: pgsql/src/bin/scripts/common.c,v 1.34 2009/02/25 13:24:40 petere Exp $ |
11 | 11 | * |
12 | 12 | *------------------------------------------------------------------------- |
13 | 13 | */ |
@@ -124,8 +124,7 @@ connectDatabase(const char *dbname, const char *pghost, const char *pgport, |
124 | 124 |
|
125 | 125 | if (PQstatus(conn)==CONNECTION_BAD&& |
126 | 126 | PQconnectionNeedsPassword(conn)&& |
127 | | -password==NULL&& |
128 | | -!feof(stdin)) |
| 127 | +password==NULL) |
129 | 128 | { |
130 | 129 | PQfinish(conn); |
131 | 130 | password=simple_prompt("Password: ",100, false); |
|