mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
Oops, introduced a bug in EOF handling. Fix it.
This commit is contained in:
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.48 1997/01/13 02:03:31 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.49 1997/01/13 02:35:32 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -1285,8 +1285,9 @@ MainLoop(PsqlSettings * settings, FILE * source)
|
|||||||
|
|
||||||
query_start = line;
|
query_start = line;
|
||||||
|
|
||||||
if (line == NULL && !settings->quiet) { /* No more input. Time to quit */
|
if (line == NULL) { /* No more input. Time to quit */
|
||||||
printf("EOF\n"); /* Goes on prompt line */
|
if (!settings->quiet)
|
||||||
|
printf("EOF\n"); /* Goes on prompt line */
|
||||||
eof = true;
|
eof = true;
|
||||||
} else {
|
} else {
|
||||||
/* remove whitespaces on the right, incl. \n's */
|
/* remove whitespaces on the right, incl. \n's */
|
||||||
|
Reference in New Issue
Block a user