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,6 +1169,7 @@ print_aligned_vertical(const printTableContent *cont, FILE *fout)
|
|||||||
if (cont->cells[0] == NULL && cont->opt->start_table &&
|
if (cont->cells[0] == NULL && cont->opt->start_table &&
|
||||||
cont->opt->stop_table)
|
cont->opt->stop_table)
|
||||||
{
|
{
|
||||||
|
if (!opt_tuples_only)
|
||||||
fprintf(fout, _("(No rows)\n"));
|
fprintf(fout, _("(No rows)\n"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user