Correct a corner case where the middle column separator overlaps the right edge of the record number.
Signed-off-by: Roger Leigh <rle...@debian.org> --- src/bin/psql/print.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bin/psql/print.c b/src/bin/psql/print.c index be81adc..c6394ad 100644 --- a/src/bin/psql/print.c +++ b/src/bin/psql/print.c @@ -1034,16 +1034,16 @@ print_aligned_vertical_line(const printTableContent *cont, if (opt_border > 0) { - if (--reclen <= 0) + if (reclen-- <= 0) fputs(format->hrule, fout); - if (--reclen <= 0) + if (reclen-- <= 0) fputs(lformat->midvrule, fout); - if (--reclen <= 0) + if (reclen-- <= 0) fputs(format->hrule, fout); } else { - if (reclen-- > 0) + if (reclen-- <= 0) fputs(" ", fout); } if (reclen < 0) -- 1.6.3.3 -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers