1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-03 22:24:49 +03:00

psql: Improve unaligned expanded output for zero rows

This used to erroneously print an empty line.  Now it prints nothing.
This commit is contained in:
Peter Eisentraut 2013-02-09 00:05:27 -05:00
parent 8ade58a4ea
commit 0343a59d11

View File

@ -439,12 +439,15 @@ print_unaligned_vertical(const printTableContent *cont, FILE *fout)
} }
/* see above in print_unaligned_text() */ /* see above in print_unaligned_text() */
if (need_recordsep)
{
if (cont->opt->recordSep.separator_zero) if (cont->opt->recordSep.separator_zero)
print_separator(cont->opt->recordSep, fout); print_separator(cont->opt->recordSep, fout);
else else
fputc('\n', fout); fputc('\n', fout);
} }
} }
}
/********************/ /********************/