Skip to content

Commit cac3463

Browse files
committed
No EOF from psql when quiet mode.
1 parent 2de3d96 commit cac3463

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/psql/psql.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.47 1997/01/10 20:52:32 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.48 1997/01/13 02:03:31 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -1285,7 +1285,7 @@ MainLoop(PsqlSettings * settings, FILE * source)
12851285

12861286
query_start = line;
12871287

1288-
if (line == NULL) { /* No more input. Time to quit */
1288+
if (line == NULL && !settings->quiet) { /* No more input. Time to quit */
12891289
printf("EOF\n"); /* Goes on prompt line */
12901290
eof = true;
12911291
} else {

0 commit comments

Comments
 (0)