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

Commit8d645a1

Browse files
committed
psql: call clearerr() just before printing
We were never doing clearerr() on the output stream, which results in amessage being printed after each result once an EOF is seen:could not print result table: SuccessThis message was added by commitb034369 (in the pg13 era); beforethat, the error indicator would never be examined. So backpatch onlythat far back, even though the actual bug (to wit: the fact that theerror indicator is never cleared) is older.
1 parentaf52770 commit8d645a1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎src/fe_utils/print.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3331,6 +3331,9 @@ printTable(const printTableContent *cont,
33313331
is_local_pager=is_pager;
33323332
}
33333333

3334+
/* clear any pre-existing error indication on the output stream */
3335+
clearerr(fout);
3336+
33343337
/* print the stuff */
33353338

33363339
if (flog)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp