Commit 0343a59d authored by Peter Eisentraut's avatar Peter Eisentraut

psql: Improve unaligned expanded output for zero rows

This used to erroneously print an empty line.  Now it prints nothing.
parent 8ade58a4
...@@ -439,10 +439,13 @@ print_unaligned_vertical(const printTableContent *cont, FILE *fout) ...@@ -439,10 +439,13 @@ print_unaligned_vertical(const printTableContent *cont, FILE *fout)
} }
/* see above in print_unaligned_text() */ /* see above in print_unaligned_text() */
if (cont->opt->recordSep.separator_zero) if (need_recordsep)
print_separator(cont->opt->recordSep, fout); {
else if (cont->opt->recordSep.separator_zero)
fputc('\n', fout); print_separator(cont->opt->recordSep, fout);
else
fputc('\n', fout);
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment