forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8d645a1
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
1 file changed
+3
-0
lines changedLines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3331 | 3331 |
| |
3332 | 3332 |
| |
3333 | 3333 |
| |
| 3334 | + | |
| 3335 | + | |
| 3336 | + | |
3334 | 3337 |
| |
3335 | 3338 |
| |
3336 | 3339 |
| |
|
0 commit comments
Comments
(0)