Skip to content

Commit 509bfd6

Browse files
committed
Fix unintended change of output format for createlang/droplang -l. Missed
these uses of printQuery() in FETCH_COUNT patch a year ago :-(. Per report from Tomoaki Sato.
1 parent faa1179 commit 509bfd6

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/bin/scripts/createlang.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
66
* Portions Copyright (c) 1994, Regents of the University of California
77
*
8-
* $PostgreSQL: pgsql/src/bin/scripts/createlang.c,v 1.25 2007/01/05 22:19:50 momjian Exp $
8+
* $PostgreSQL: pgsql/src/bin/scripts/createlang.c,v 1.26 2007/08/10 00:39:31 tgl Exp $
99
*
1010
*-------------------------------------------------------------------------
1111
*/
@@ -138,6 +138,8 @@ main(int argc, char *argv[])
138138
memset(&popt, 0, sizeof(popt));
139139
popt.topt.format = PRINT_ALIGNED;
140140
popt.topt.border = 1;
141+
popt.topt.start_table = true;
142+
popt.topt.stop_table = true;
141143
popt.topt.encoding = PQclientEncoding(conn);
142144
popt.title = _("Procedural Languages");
143145
printQuery(result, &popt, stdout, NULL);

src/bin/scripts/droplang.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
66
* Portions Copyright (c) 1994, Regents of the University of California
77
*
8-
* $PostgreSQL: pgsql/src/bin/scripts/droplang.c,v 1.22 2007/01/05 22:19:50 momjian Exp $
8+
* $PostgreSQL: pgsql/src/bin/scripts/droplang.c,v 1.23 2007/08/10 00:39:31 tgl Exp $
99
*
1010
*-------------------------------------------------------------------------
1111
*/
@@ -149,6 +149,8 @@ main(int argc, char *argv[])
149149
memset(&popt, 0, sizeof(popt));
150150
popt.topt.format = PRINT_ALIGNED;
151151
popt.topt.border = 1;
152+
popt.topt.start_table = true;
153+
popt.topt.stop_table = true;
152154
popt.topt.encoding = PQclientEncoding(conn);
153155
popt.title = _("Procedural Languages");
154156
printQuery(result, &popt, stdout, NULL);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy