projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66789cf
)
Fix psql \x by removing puts().
author
Bruce Momjian
<
[email protected]
>
Thu, 22 Sep 2005 15:51:51 +0000
(15:51 +0000)
committer
Bruce Momjian
<
[email protected]
>
Thu, 22 Sep 2005 15:51:51 +0000
(15:51 +0000)
Greg Sabino Mullane
src/bin/psql/print.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/psql/print.c
b/src/bin/psql/print.c
index 656675eaf8cfba3c0080340b9f3423ac9f1e48ee..5158ef99dd00a5f7ff58bc6a526dcdda88b0e3ba 100644
(file)
--- a/
src/bin/psql/print.c
+++ b/
src/bin/psql/print.c
@@
-570,7
+570,7
@@
print_aligned_vertical(const char *title, const char *const *headers,
if (cells[0] == NULL)
{
-
puts(
_("(No rows)\n"));
+
fprintf(fout,
_("(No rows)\n"));
return;
}
@@
-704,7
+704,7
@@
print_aligned_vertical(const char *title, const char *const *headers,
if (opt_align[i % col_count] == 'r' && opt_numeric_locale)
format_numeric_locale(my_cell);
if (opt_border < 2)
-
puts(
my_cell);
+
fprintf(fout, "%s\n",
my_cell);
else
fprintf(fout, "%-s%*s |\n", my_cell, dwidth - cell_w[i], "");
free(my_cell);