Skip to content

Commit 8ade58a

Browse files
committed
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.
1 parent c61e26e commit 8ade58a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin/psql/print.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1169,7 +1169,8 @@ print_aligned_vertical(const printTableContent *cont, FILE *fout)
11691169
if (cont->cells[0] == NULL && cont->opt->start_table &&
11701170
cont->opt->stop_table)
11711171
{
1172-
fprintf(fout, _("(No rows)\n"));
1172+
if (!opt_tuples_only)
1173+
fprintf(fout, _("(No rows)\n"));
11731174
return;
11741175
}
11751176

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy