diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2000-02-07 23:10:11 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2000-02-07 23:10:11 +0000 |
commit | 9ceb5d8a7bfc4a6315f37913afb5f3d6cefa651f (patch) | |
tree | cfe54170ff754e064955bb00be586a5b26ab7db3 /src/bin/psql/print.c | |
parent | 4842ef86247a323de9ec25e799d756c320222fe0 (diff) |
Fixed psql double quoting of SQL ids
Fixed libpq printing functions
Diffstat (limited to 'src/bin/psql/print.c')
-rw-r--r-- | src/bin/psql/print.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bin/psql/print.c b/src/bin/psql/print.c index 3ff0d27c227..44faad5850f 100644 --- a/src/bin/psql/print.c +++ b/src/bin/psql/print.c @@ -3,7 +3,7 @@ * * Copyright 2000 by PostgreSQL Global Development Group * - * $Header: /cvsroot/pgsql/src/bin/psql/print.c,v 1.9 2000/01/29 16:58:49 petere Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/print.c,v 1.10 2000/02/07 23:10:06 petere Exp $ */ #include <c.h> #include "print.h" @@ -266,7 +266,9 @@ print_aligned_text(const char *title, const char * const * headers, for (i = 0; i < col_count; i++) { /* centered */ - fprintf(fout, "%-*s%s%-*s", (int) floor((widths[i] - strlen(headers[i])) / 2.0), "", headers[i], (int) ceil((widths[i] - strlen(headers[i])) / 2.0), ""); + fprintf(fout, "%-*s%s%-*s", + (int) floor((widths[i] - strlen(headers[i])) / 2.0), "", + headers[i], (int) ceil((widths[i] - strlen(headers[i])) / 2.0), ""); if (i < col_count - 1) { |