psql: honor 'footer' option for expanded output
authorBruce Momjian
Tue, 10 Sep 2013 23:07:06 +0000 (19:07 -0400)
committerBruce Momjian
Tue, 10 Sep 2013 23:07:06 +0000 (19:07 -0400)
"No rows" previously only honored the tuples-only option.

Per report from Eli Mesika

src/bin/psql/print.c

index 5589ceaa7ff36fd2b01b7af5d33ac78ae3ac02f0..736225c629ef29f0188dc8b23f37961d7bb1e1e6 100644 (file)
@@ -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;
    }