psql: honor 'footer' option for expanded output

"No rows" previously only honored the tuples-only option.

Per report from Eli Mesika
This commit is contained in:
Bruce Momjian 2013-09-10 19:07:06 -04:00
parent 71129b6fc5
commit 601f48076f

View 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;
}