summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian2013-09-10 23:07:06 +0000
committerBruce Momjian2013-09-10 23:07:06 +0000
commit601f48076f8036a223f631692db83ec661f785a6 (patch)
tree7285b1f9e1926652a15ede0356afcaad9e80445b
parent71129b6fc5a7f1a7615f9ee07ee55994217de994 (diff)
psql: honor 'footer' option for expanded output
"No rows" previously only honored the tuples-only option. Per report from Eli Mesika
-rw-r--r--src/bin/psql/print.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/psql/print.c b/src/bin/psql/print.c
index 5589ceaa7f..736225c629 100644
--- a/src/bin/psql/print.c
+++ b/src/bin/psql/print.c
@@ -1171,7 +1171,7 @@ print_aligned_vertical(const printTableContent *cont, FILE *fout)
if (cont->cells[0] == NULL && cont->opt->start_table &&
cont->opt->stop_table)
{
- if (!opt_tuples_only)
+ if (!opt_tuples_only && cont->opt->default_footer)
fprintf(fout, _("(No rows)\n"));
return;
}