|
3 | 3 | *
|
4 | 4 | * Copyright (c) 2000-2005, PostgreSQL Global Development Group
|
5 | 5 | *
|
6 |
| - * $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.72 2005/07/18 20:57:53 momjian Exp $ |
| 6 | + * $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.73 2005/09/22 15:51:51 momjian Exp $ |
7 | 7 | */
|
8 | 8 | #include"postgres_fe.h"
|
9 | 9 | #include"common.h"
|
@@ -570,7 +570,7 @@ print_aligned_vertical(const char *title, const char *const *headers,
|
570 | 570 |
|
571 | 571 | if (cells[0]==NULL)
|
572 | 572 | {
|
573 |
| -puts(_("(No rows)\n")); |
| 573 | +fprintf(fout,_("(No rows)\n")); |
574 | 574 | return;
|
575 | 575 | }
|
576 | 576 |
|
@@ -704,7 +704,7 @@ print_aligned_vertical(const char *title, const char *const *headers,
|
704 | 704 | if (opt_align[i %col_count]=='r'&&opt_numeric_locale)
|
705 | 705 | format_numeric_locale(my_cell);
|
706 | 706 | if (opt_border<2)
|
707 |
| -puts(my_cell); |
| 707 | +fprintf(fout,"%s\n",my_cell); |
708 | 708 | else
|
709 | 709 | fprintf(fout,"%-s%*s |\n",my_cell,dwidth-cell_w[i],"");
|
710 | 710 | free(my_cell);
|
|