Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfebfe44

Browse files
committed
Oops, introduced a bug in EOF handling. Fix it.
1 parentcac3463 commitfebfe44

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎src/bin/psql/psql.c

Lines changed: 4 additions & 3 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.48 1997/01/13 02:03:31 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.49 1997/01/13 02:35:32 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -1285,8 +1285,9 @@ MainLoop(PsqlSettings * settings, FILE * source)
12851285

12861286
query_start=line;
12871287

1288-
if (line==NULL&& !settings->quiet) {/* No more input. Time to quit */
1289-
printf("EOF\n");/* Goes on prompt line */
1288+
if (line==NULL) {/* No more input. Time to quit */
1289+
if (!settings->quiet)
1290+
printf("EOF\n");/* Goes on prompt line */
12901291
eof= true;
12911292
}else {
12921293
/* remove whitespaces on the right, incl. \n's */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp