OSDN Git Service

Fix unintended change of output format for createlang/droplang -l. Missed
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 10 Aug 2007 00:39:31 +0000 (00:39 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 10 Aug 2007 00:39:31 +0000 (00:39 +0000)
these uses of printQuery() in FETCH_COUNT patch a year ago :-(.  Per report
from Tomoaki Sato.

src/bin/scripts/createlang.c
src/bin/scripts/droplang.c

index b06184e..e1d2841 100644 (file)
@@ -5,7 +5,7 @@
  * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * $PostgreSQL: pgsql/src/bin/scripts/createlang.c,v 1.25 2007/01/05 22:19:50 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/scripts/createlang.c,v 1.26 2007/08/10 00:39:31 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -138,6 +138,8 @@ main(int argc, char *argv[])
                memset(&popt, 0, sizeof(popt));
                popt.topt.format = PRINT_ALIGNED;
                popt.topt.border = 1;
+               popt.topt.start_table = true;
+               popt.topt.stop_table = true;
                popt.topt.encoding = PQclientEncoding(conn);
                popt.title = _("Procedural Languages");
                printQuery(result, &popt, stdout, NULL);
index ef6aa39..47da28e 100644 (file)
@@ -5,7 +5,7 @@
  * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * $PostgreSQL: pgsql/src/bin/scripts/droplang.c,v 1.22 2007/01/05 22:19:50 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/scripts/droplang.c,v 1.23 2007/08/10 00:39:31 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -149,6 +149,8 @@ main(int argc, char *argv[])
                memset(&popt, 0, sizeof(popt));
                popt.topt.format = PRINT_ALIGNED;
                popt.topt.border = 1;
+               popt.topt.start_table = true;
+               popt.topt.stop_table = true;
                popt.topt.encoding = PQclientEncoding(conn);
                popt.title = _("Procedural Languages");
                printQuery(result, &popt, stdout, NULL);