]> granicus.if.org Git - postgresql/commitdiff
No EOF from psql when quiet mode.
authorBruce Momjian <bruce@momjian.us>
Mon, 13 Jan 1997 02:03:31 +0000 (02:03 +0000)
committerBruce Momjian <bruce@momjian.us>
Mon, 13 Jan 1997 02:03:31 +0000 (02:03 +0000)
src/bin/psql/psql.c

index 9c5bf7efaab44f4b08fab2ff0a2fbd3774c8bd88..7b6e50fc11d48d5b41c0392072d7af9c736f1ba7 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.47 1997/01/10 20:52:32 momjian Exp $
+ *    $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.48 1997/01/13 02:03:31 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -1285,7 +1285,7 @@ MainLoop(PsqlSettings * settings, FILE * source)
 
        query_start = line;
 
-       if (line == NULL) {     /* No more input.  Time to quit */
+       if (line == NULL && !settings->quiet) { /* No more input.  Time to quit */
            printf("EOF\n");    /* Goes on prompt line */
            eof = true;
        } else {