mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-03-07 19:47:50 +08:00
psql: Improve expanded print output in tuples-only mode
When there are zero result rows, in expanded mode, "(No rows)" is printed. So far, there was no way to turn this off. Now, when tuples-only mode is turned on, nothing is printed in this case.
This commit is contained in:
parent
c61e26ee3e
commit
8ade58a4ea
@ -1169,7 +1169,8 @@ print_aligned_vertical(const printTableContent *cont, FILE *fout)
|
||||
if (cont->cells[0] == NULL && cont->opt->start_table &&
|
||||
cont->opt->stop_table)
|
||||
{
|
||||
fprintf(fout, _("(No rows)\n"));
|
||||
if (!opt_tuples_only)
|
||||
fprintf(fout, _("(No rows)\n"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user