]> granicus.if.org Git - postgresql/commitdiff
Fix unintended change of output format for createlang/droplang -l. Missed
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 10 Aug 2007 00:39:44 +0000 (00:39 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 10 Aug 2007 00:39:44 +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 a9ce74e5060e7521a71a3091bbe5c8a4455c249c..ec1567a5683bc1060e3aeea511f238c5970a2281 100644 (file)
@@ -5,7 +5,7 @@
  * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * $PostgreSQL: pgsql/src/bin/scripts/createlang.c,v 1.24 2006/07/14 14:52:27 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/scripts/createlang.c,v 1.24.2.1 2007/08/10 00:39:44 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 c1101479293c9e9b20956bdbc7a923120faacfd9..5476e69956f720310bf70772d4695c9af670bb7d 100644 (file)
@@ -5,7 +5,7 @@
  * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * $PostgreSQL: pgsql/src/bin/scripts/droplang.c,v 1.21 2006/05/31 11:02:42 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/scripts/droplang.c,v 1.21.2.1 2007/08/10 00:39:44 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);