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

Commitce02ccf

Browse files
committed
I've noticed that \i filename in 6.0beta prints the input file double-spaced.
Here is a trivial patch to get back the 1.09 behavior; it just removes trailingnewlines before printing the line out with a newline rather than after...Thomas Lockhart
1 parent0567d7e commitce02ccf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/bin/psql/psql.c

Lines changed: 4 additions & 4 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.46 1997/01/05 23:46:17 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.47 1997/01/10 20:52:32 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -1289,12 +1289,12 @@ MainLoop(PsqlSettings * settings, FILE * source)
12891289
printf("EOF\n");/* Goes on prompt line */
12901290
eof= true;
12911291
}else {
1292-
if (!interactive&& !settings->singleStep&& !settings->quiet)
1293-
fprintf(stderr,"%s\n",line);
1294-
12951292
/* remove whitespaces on the right, incl. \n's */
12961293
line=rightTrim(line);
12971294

1295+
if (!interactive&& !settings->singleStep&& !settings->quiet)
1296+
fprintf(stderr,"%s\n",line);
1297+
12981298
if (line[0]=='\0') {
12991299
free(line);
13001300
continue;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp