projects
/
users
/
c2main
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ade58a
)
psql: Improve unaligned expanded output for zero rows
author
Peter Eisentraut
<
[email protected]
>
Sat, 9 Feb 2013 05:05:27 +0000
(
00:05
-0500)
committer
Peter Eisentraut
<
[email protected]
>
Sat, 9 Feb 2013 05:11:58 +0000
(
00:11
-0500)
This used to erroneously print an empty line. Now it prints nothing.
src/bin/psql/print.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/psql/print.c
b/src/bin/psql/print.c
index 2aa313407ef163769a45e5bd444b96c6892eda45..0722c984a8261f130d2ab8f983369c9c09701abe 100644
(file)
--- a/
src/bin/psql/print.c
+++ b/
src/bin/psql/print.c
@@
-439,10
+439,13
@@
print_unaligned_vertical(const printTableContent *cont, FILE *fout)
}
/* see above in print_unaligned_text() */
- if (cont->opt->recordSep.separator_zero)
- print_separator(cont->opt->recordSep, fout);
- else
- fputc('\n', fout);
+ if (need_recordsep)
+ {
+ if (cont->opt->recordSep.separator_zero)
+ print_separator(cont->opt->recordSep, fout);
+ else
+ fputc('\n', fout);
+ }
}
}